Arch/Draft: minor fixes

This commit is contained in:
hlg
2020-06-02 17:07:06 +02:00
committed by Yorik van Havre
parent f56c4fa67f
commit 0759436661
2 changed files with 2 additions and 3 deletions

View File

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