mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
fix error saving ifc file / assigning classes 6eb3c4814
This commit is contained in:
@@ -95,9 +95,12 @@ class Collector(blenderbim.core.tool.Collector):
|
|||||||
# NOTE: won't allow assigning IfcElements to the IfcProject directly
|
# 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
|
# and some elements might get missing in other viewers if they're don't support displaying
|
||||||
# elements without hierarchy
|
# elements without hierarchy
|
||||||
blenderbim.core.aggregate.assign_object(
|
try:
|
||||||
tool.Ifc, tool.Aggregate, tool.Collector, relating_obj=parent_obj, related_obj=obj
|
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
|
@classmethod
|
||||||
def assign(cls, obj: bpy.types.Object) -> None:
|
def assign(cls, obj: bpy.types.Object) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user