mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 03:19:53 +00:00
Prevents using aggregate mode with IfcSpatialElement
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user