[Bf-extensions-cvs] [47a32a53] master: PLY Import: Hide empty operator properties sidebar in file browser

Julian Eisel noreply at git.blender.org
Sun Jan 26 16:50:11 CET 2020


Commit: 47a32a5370d36942674621e5a03e57e8dd4986d8
Author: Julian Eisel
Date:   Sun Jan 26 16:49:44 2020 +0100
Branches: master
https://developer.blender.org/rBA47a32a5370d36942674621e5a03e57e8dd4986d8

PLY Import: Hide empty operator properties sidebar in file browser

The sidebar is empty for the PLY importer, so better to hide it.

===================================================================

M	io_mesh_ply/__init__.py

===================================================================

diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py
index cb3afd42..f99dbffb 100644
--- a/io_mesh_ply/__init__.py
+++ b/io_mesh_ply/__init__.py
@@ -71,6 +71,13 @@ class ImportPLY(bpy.types.Operator, ImportHelper):
         ),
         type=bpy.types.OperatorFileListElement)
 
+    # 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,
+    )
+
     directory: StringProperty()
 
     filename_ext = ".ply"



More information about the Bf-extensions-cvs mailing list