fix error saving ifc file / assigning classes 6eb3c4814

This commit is contained in:
Andrej730
2024-06-03 16:02:19 +05:00
parent 5fb7e6e375
commit f4ce2965f9
+6 -3
View File
@@ -95,9 +95,12 @@ class Collector(blenderbim.core.tool.Collector):
# NOTE: won't allow assigning IfcElements to the IfcProject directly
# and some elements might get missing in other viewers if they're don't support displaying
# elements without hierarchy
blenderbim.core.aggregate.assign_object(
tool.Ifc, tool.Aggregate, tool.Collector, relating_obj=parent_obj, related_obj=obj
)
try:
blenderbim.core.aggregate.assign_object(
tool.Ifc, tool.Aggregate, tool.Collector, relating_obj=parent_obj, related_obj=obj
)
except blenderbim.core.aggregate.IncompatibleAggregateError:
pass
@classmethod
def assign(cls, obj: bpy.types.Object) -> None: