updated ui with Presentation Layer

This commit is contained in:
ofskrand
2020-11-04 08:52:20 +01:00
parent eeef2cfb3f
commit aed4706e4c
2 changed files with 32 additions and 6 deletions
@@ -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,
+31 -6
View File
@@ -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"