Fixed bug: In exporting IFC with shared clone shapes geometry, clone of clone object displaced because of bug in Draft.get_clone_base function.

This commit is contained in:
Amritpal Singh
2020-09-22 20:06:07 +05:30
committed by Yorik van Havre
parent 1a15d566d5
commit b7b24cbb6c

View File

@@ -560,7 +560,7 @@ def get_clone_base(obj, strict=False):
if obj.CloneOf:
return get_clone_base(obj.CloneOf)
if get_type(obj) == "Clone" and obj.Objects:
return obj.Objects[0]
return get_clone_base(obj.Objects[0])
if strict:
return False
return obj