From f1187e33d9e3f0e49ef1dd9a12d762bb3ae7ded5 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 24 Jan 2025 16:36:07 +1100 Subject: [PATCH] Don't show IFC product selection in the type manager since it's assumed to be IfcElementType from context --- src/bonsai/bonsai/bim/module/root/operator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/root/operator.py b/src/bonsai/bonsai/bim/module/root/operator.py index 02e2890505..c8178f4d27 100644 --- a/src/bonsai/bonsai/bim/module/root/operator.py +++ b/src/bonsai/bonsai/bim/module/root/operator.py @@ -568,7 +568,8 @@ class AddElement(bpy.types.Operator, tool.Ifc.Operator): row = self.layout.row() row.prop(props, "description") if not self.is_specific_tool: - prop_with_search(self.layout, props, "ifc_product", text="Definition", should_click_ok=True) + if not self.ifc_product: + prop_with_search(self.layout, props, "ifc_product", text="Definition", should_click_ok=True) prop_with_search(self.layout, props, "ifc_class", should_click_ok=True) ifc_predefined_types = root_prop.get_ifc_predefined_types(context.scene.BIMRootProperties, context) if ifc_predefined_types: