mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
PLY Import: Hide empty operator properties sidebar in file browser
The sidebar is empty for the PLY importer, so better to hide it.
This commit is contained in:
parent
3cb212602c
commit
ba8de85299
1 changed files with 7 additions and 0 deletions
|
|
@ -116,6 +116,13 @@ class ImportHelper:
|
|||
subtype='FILE_PATH',
|
||||
)
|
||||
|
||||
# Hide opertator properties, rest of this is managed in C. See WM_operator_properties_filesel().
|
||||
hide_props_region: BoolProperty(
|
||||
name="Hide Operator Properties",
|
||||
description="Collapse the region displaying the operator settings",
|
||||
default=True,
|
||||
)
|
||||
|
||||
def invoke(self, context, _event):
|
||||
context.window_manager.fileselect_add(self)
|
||||
return {'RUNNING_MODAL'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue