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:
Julian Eisel
2020-01-22 14:48:44 +01:00
parent 3cb212602c
commit ba8de85299

View File

@@ -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'}