mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
enable an object to take part in an object type decomposition #3592
This commit is contained in:
@@ -28,7 +28,7 @@ class Aggregate(blenderbim.core.tool.Aggregate):
|
|||||||
related_object = tool.Ifc.get_entity(related_obj)
|
related_object = tool.Ifc.get_entity(related_obj)
|
||||||
if not relating_object or not related_object:
|
if not relating_object or not related_object:
|
||||||
return False
|
return False
|
||||||
if relating_object.is_a("IfcElement") and related_object.is_a("IfcElement"):
|
if (relating_object.is_a("IfcElement") or relating_object.is_a("IfcElementType")) and related_object.is_a("IfcElement"):
|
||||||
if relating_obj.data:
|
if relating_obj.data:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user