mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Profiles, Materials UI - indicate in UI currently edited element
This commit is contained in:
@@ -431,6 +431,8 @@ class BIM_UL_materials(UIList):
|
|||||||
row.prop(item, "name", text="", emboss=False)
|
row.prop(item, "name", text="", emboss=False)
|
||||||
else:
|
else:
|
||||||
row.label(text="", icon="BLANK1")
|
row.label(text="", icon="BLANK1")
|
||||||
|
if item.ifc_definition_id == data.active_material_id:
|
||||||
|
row.label(text="", icon="GREASEPENCIL")
|
||||||
if material_type == "IfcMaterialList":
|
if material_type == "IfcMaterialList":
|
||||||
row.label(text=item.name, icon="MATERIAL")
|
row.label(text=item.name, icon="MATERIAL")
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -146,5 +146,7 @@ class BIM_UL_profiles(UIList):
|
|||||||
):
|
):
|
||||||
if item:
|
if item:
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
|
if item.ifc_definition_id == data.active_profile_id:
|
||||||
|
row.label(text="", icon="GREASEPENCIL")
|
||||||
row.prop(item, "name", text="", emboss=False)
|
row.prop(item, "name", text="", emboss=False)
|
||||||
row.label(text=item.ifc_class)
|
row.label(text=item.ifc_class)
|
||||||
|
|||||||
Reference in New Issue
Block a user