Select filling objects from UI

Example - https://i.imgur.com/BijTwgo.png
This commit is contained in:
Andrej730
2025-01-16 15:45:46 +05:00
parent c66f2131e2
commit 44131a7fe5
+6
View File
@@ -60,6 +60,9 @@ class BIM_PT_voids(Panel):
for filling in VoidsData.data["fillings"]:
row = self.layout.row(align=True)
row.label(text=filling["Name"], icon="SELECT_INTERSECT")
op = row.operator("bim.select_entity", text="", icon="RESTRICT_SELECT_OFF")
op.ifc_id = filling["id"]
op.tooltip = "Select filling object."
row.operator("bim.remove_filling", icon="X", text="").filling = filling["id"]
else:
if not VoidsData.data["openings"]:
@@ -72,6 +75,9 @@ class BIM_PT_voids(Panel):
row = self.layout.row(align=True)
row.label(text=opening["Name"], icon="SELECT_SUBTRACT")
row.label(text=filling["Name"], icon="SELECT_INTERSECT")
op = row.operator("bim.select_entity", text="", icon="RESTRICT_SELECT_OFF")
op.ifc_id = filling["id"]
op.tooltip = "Select filling object."
else:
row = self.layout.row(align=True)
row.label(text=opening["Name"], icon="SELECT_SUBTRACT")