From 62e5c3684b44b8c439f4b44a65aac53315d6f8d0 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 7 Nov 2022 22:37:53 +1100 Subject: [PATCH] Fix #2564. Bug where profiles were not reused across copies. --- src/blenderbim/blenderbim/tool/root.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/tool/root.py b/src/blenderbim/blenderbim/tool/root.py index bb0e9eaf93..920e6b07c5 100644 --- a/src/blenderbim/blenderbim/tool/root.py +++ b/src/blenderbim/blenderbim/tool/root.py @@ -54,13 +54,15 @@ class Root(blenderbim.core.tool.Root): if not source.Representation: return dest.Representation = ifcopenshell.util.element.copy_deep( - tool.Ifc.get(), source.Representation, exclude=["IfcGeometricRepresentationContext"] + tool.Ifc.get(), source.Representation, exclude=["IfcGeometricRepresentationContext", "IfcProfileDef"] ) elif dest.is_a("IfcTypeProduct"): if not source.RepresentationMaps: return dest.RepresentationMaps = [ - ifcopenshell.util.element.copy_deep(tool.Ifc.get(), m, exclude=["IfcGeometricRepresentationContext"]) + ifcopenshell.util.element.copy_deep( + tool.Ifc.get(), m, exclude=["IfcGeometricRepresentationContext", "IfcProfileDef"] + ) for m in source.RepresentationMaps ]