mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 02:49:12 +00:00
BBIM: Move out Search/Selection sub-panels from "IFC Collaboration" to "IFC Selection"
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user