Prevents using aggregate mode with IfcSpatialElement

This commit is contained in:
Bruno Perdigão
2025-07-23 14:29:37 -03:00
parent 17d6b8af61
commit 651d924759
2 changed files with 2 additions and 1 deletions
@@ -2115,7 +2115,7 @@ class OverrideModeSetEdit(bpy.types.Operator, tool.Ifc.Operator):
def has_aggregates(self, objs):
for obj in objs:
element = tool.Ifc.get_entity(obj)
if not element:
if not element or element.is_a("IfcSpatialElement"):
continue
aggregate = ifcopenshell.util.element.get_aggregate(element)
parts = ifcopenshell.util.element.get_parts(element)
@@ -126,6 +126,7 @@ class BIM_PT_spatial_decomposition(Panel):
if not SpatialDecompositionData.is_loaded:
SpatialDecompositionData.load()
self.props = tool.Spatial.get_spatial_props()
self.props
if SpatialDecompositionData.data["default_container"]:
row = self.layout.row(align=True)