BBIM: Move out Search/Selection sub-panels from "IFC Collaboration" to "IFC Selection"

This commit is contained in:
Sigma Dimensions
2023-01-09 14:49:59 +01:00
parent f848340124
commit 8aa4934d92
3 changed files with 19 additions and 11 deletions
@@ -117,6 +117,7 @@ classes = [
ui.BIM_PT_project_info,
ui.BIM_PT_project_setup,
ui.BIM_PT_collaboration,
ui.BIM_PT_selection,
ui.BIM_PT_geometry,
ui.BIM_PT_services,
ui.BIM_PT_structural,
@@ -24,15 +24,11 @@ from blenderbim.bim.ifc import IfcStore
class BIM_PT_search(Panel):
bl_label = "IFC Search"
bl_idname = "BIM_PT_search"
bl_options = {"DEFAULT_CLOSED"}
# bl_options = {"DEFAULT_CLOSED"}
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"
bl_parent_id = "BIM_PT_collaboration"
@classmethod
def poll(cls, context):
return IfcStore.get_file()
bl_parent_id = "BIM_PT_selection"
def draw(self, context):
props = context.scene.BIMSearchProperties
@@ -111,11 +107,7 @@ class BIM_PT_IFCSelector(Panel):
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"
bl_parent_id = "BIM_PT_collaboration"
@classmethod
def poll(cls, context):
return IfcStore.get_file()
bl_parent_id = "BIM_PT_selection"
def draw(self, context):
layout = self.layout
+15
View File
@@ -233,6 +233,21 @@ class BIM_PT_collaboration(Panel):
pass
class BIM_PT_selection(Panel):
bl_label = "IFC Selection"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "scene"
bl_options = {"DEFAULT_CLOSED"}
@classmethod
def poll(cls, context):
return tool.Ifc.get()
def draw(self, context):
pass
class BIM_PT_geometry(Panel):
bl_label = "IFC Geometry"
bl_space_type = "PROPERTIES"