mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
Display referenced structured elements during container edit for more responsive ui
Before - https://imgur.com/a/m5qtDUn After - https://imgur.com/a/TFlUNTa
This commit is contained in:
@@ -81,9 +81,15 @@ class BIM_PT_spatial(Panel):
|
|||||||
else:
|
else:
|
||||||
row.label(text="No Spatial Container")
|
row.label(text="No Spatial Container")
|
||||||
row.operator("bim.enable_editing_container", icon="GREASEPENCIL", text="")
|
row.operator("bim.enable_editing_container", icon="GREASEPENCIL", text="")
|
||||||
for reference in SpatialData.data["references"]:
|
|
||||||
|
references = SpatialData.data["references"]
|
||||||
|
if references:
|
||||||
|
self.layout.label(text="Referenced In Structures:")
|
||||||
|
for reference in references:
|
||||||
row = self.layout.row()
|
row = self.layout.row()
|
||||||
row.label(text=reference, icon="LINKED")
|
row.label(text=reference, icon="LINKED")
|
||||||
|
else:
|
||||||
|
self.layout.label(text="No References In Structures")
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_spatial_decomposition(Panel):
|
class BIM_PT_spatial_decomposition(Panel):
|
||||||
|
|||||||
Reference in New Issue
Block a user