Arch: IFC exporter now exports cloned Arch objects with shared geometry

This commit is contained in:
Yorik van Havre
2015-08-25 22:11:40 -03:00
parent fc9d1e86ac
commit 293b16f94a
2 changed files with 74 additions and 10 deletions

View File

@@ -649,7 +649,14 @@ def pruneIncluded(objectslist):
if parent.isDerivedFrom("Part::Feature"):
if not parent.isDerivedFrom("Part::Part2DObject"):
# don't consider 2D objects based on arch elements
toplevel = False
if hasattr(parent,"CloneOf"):
if parent.CloneOf:
if parent.CloneOf.Name != obj.Name:
toplevel = False
else:
toplevel = False
else:
toplevel = False
if toplevel:
newlist.append(obj)
return newlist