Profiles, Materials UI - indicate in UI currently edited element

This commit is contained in:
Andrej730
2025-02-17 16:22:45 +05:00
parent 8c2d71b306
commit 93ee92c401
2 changed files with 4 additions and 0 deletions
@@ -431,6 +431,8 @@ class BIM_UL_materials(UIList):
row.prop(item, "name", text="", emboss=False)
else:
row.label(text="", icon="BLANK1")
if item.ifc_definition_id == data.active_material_id:
row.label(text="", icon="GREASEPENCIL")
if material_type == "IfcMaterialList":
row.label(text=item.name, icon="MATERIAL")
else:
@@ -146,5 +146,7 @@ class BIM_UL_profiles(UIList):
):
if item:
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.label(text=item.ifc_class)