diff --git a/src/ifcblenderexport/blenderbim/bim/__init__.py b/src/ifcblenderexport/blenderbim/bim/__init__.py index 0c05eb6154..1296a667b1 100644 --- a/src/ifcblenderexport/blenderbim/bim/__init__.py +++ b/src/ifcblenderexport/blenderbim/bim/__init__.py @@ -278,6 +278,7 @@ if bpy is not None: ui.BIM_PT_debug, ui.BIM_PT_material, ui.BIM_PT_mesh, + ui.BIM_PT_presentation, ui.BIM_PT_object, ui.BIM_PT_object_psets, ui.BIM_PT_object_qto, diff --git a/src/ifcblenderexport/blenderbim/bim/ui.py b/src/ifcblenderexport/blenderbim/bim/ui.py index 57f834eaac..c3536cb59e 100644 --- a/src/ifcblenderexport/blenderbim/bim/ui.py +++ b/src/ifcblenderexport/blenderbim/bim/ui.py @@ -650,12 +650,6 @@ class BIM_PT_mesh(Panel): row.prop(ifc_parameter, "value", text="") row.operator("bim.update_ifc_representation", icon="FILE_REFRESH", text="").index = index - row = layout.row() - row.prop(props.presentation_layer, "name") - row.prop(props.presentation_layer, "description") - row.prop(props.presentation_layer, "identifier") - row.prop(props.presentation_layer, "layer_on") - row = layout.row() row.prop(props, "is_parametric") row = layout.row() @@ -683,6 +677,37 @@ class BIM_PT_mesh(Panel): row.prop(props, "swept_solids") +class BIM_PT_presentation(Panel): + bl_label = "IFC Presentation Layers" + bl_idname = "BIM_PT_presentation" + bl_space_type = "PROPERTIES" + bl_region_type = "WINDOW" + bl_context = "data" + + @classmethod + def poll(cls, context): + return ( + context.active_object is not None + and context.active_object.type == "MESH" + and hasattr(context.active_object.data, "BIMMeshProperties") + ) + + def draw(self, context): + if not context.active_object.data: + return + layout = self.layout + props = context.active_object.data.BIMMeshProperties + + row = layout.row(align=True) + row.prop(props.presentation_layer, "name") + row = layout.row() + row.prop(props.presentation_layer, "description") + row = layout.row() + row.prop(props.presentation_layer, "identifier") + row = layout.row() + row.prop(props.presentation_layer, "layer_on") + + class BIM_PT_material(Panel): bl_label = "IFC Materials" bl_idname = "BIM_PT_material"