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

@@ -72,8 +72,7 @@ def insert(filename,docname,record=None):
translate("Arch","Shapes elevation"),
translate("Arch","Choose which field provides shapes elevations:"),
fields)
if reply[1]:
if record != "None":
if reply[1] and reply[0] != "None":
record = reply[0]
# build shapes

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