From ba8de85299ffaefba76dc2f0ca8231587ee7c233 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 22 Jan 2020 14:48:44 +0100 Subject: PLY Import: Hide empty operator properties sidebar in file browser The sidebar is empty for the PLY importer, so better to hide it. --- release/scripts/modules/bpy_extras/io_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'release') 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'} -- cgit v1.2.3