From 8aa4934d9203b91d99b1b6b23c0591675051b019 Mon Sep 17 00:00:00 2001 From: Sigma Dimensions <79010126+myoualid@users.noreply.github.com> Date: Mon, 9 Jan 2023 14:49:59 +0100 Subject: [PATCH] BBIM: Move out Search/Selection sub-panels from "IFC Collaboration" to "IFC Selection" --- src/blenderbim/blenderbim/bim/__init__.py | 1 + src/blenderbim/blenderbim/bim/module/search/ui.py | 14 +++----------- src/blenderbim/blenderbim/bim/ui.py | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/__init__.py b/src/blenderbim/blenderbim/bim/__init__.py index 1b4b694710..b5f76ee8d1 100644 --- a/src/blenderbim/blenderbim/bim/__init__.py +++ b/src/blenderbim/blenderbim/bim/__init__.py @@ -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, diff --git a/src/blenderbim/blenderbim/bim/module/search/ui.py b/src/blenderbim/blenderbim/bim/module/search/ui.py index 0d0b1be7ca..fcec6ec14d 100644 --- a/src/blenderbim/blenderbim/bim/module/search/ui.py +++ b/src/blenderbim/blenderbim/bim/module/search/ui.py @@ -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 diff --git a/src/blenderbim/blenderbim/bim/ui.py b/src/blenderbim/blenderbim/bim/ui.py index 1d60e112f4..60ca902c05 100644 --- a/src/blenderbim/blenderbim/bim/ui.py +++ b/src/blenderbim/blenderbim/bim/ui.py @@ -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"