diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2020-01-22 16:48:44 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2020-01-22 16:59:06 +0300 |
commit | ba8de85299ffaefba76dc2f0ca8231587ee7c233 (patch) | |
tree | 4f50f03074eab5d7a3e1b87d24501515ccc16507 /release/scripts/modules/bpy_extras/io_utils.py | |
parent | 3cb212602cacc186800c82febc86f5c68c1f92fb (diff) |
PLY Import: Hide empty operator properties sidebar in file browser
The sidebar is empty for the PLY importer, so better to hide it.
Diffstat (limited to 'release/scripts/modules/bpy_extras/io_utils.py')
-rw-r--r-- | release/scripts/modules/bpy_extras/io_utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py index 19697b25f70..9e8febb47cd 100644 --- a/release/scripts/modules/bpy_extras/io_utils.py +++ b/release/scripts/modules/bpy_extras/io_utils.py @@ -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'} |