Draft: Fix messages that only worked for objects supplied as strings
Some error messages would only work if objects were supplied as strings. These would fail if objects were passed (as objects) that had already been deleted.
This commit is contained in:
@@ -120,13 +120,9 @@ def make_circular_array(base_object,
|
||||
"""
|
||||
_name = "make_circular_array"
|
||||
|
||||
if isinstance(base_object, str):
|
||||
base_object_str = base_object
|
||||
|
||||
found, base_object = utils.find_object(base_object,
|
||||
doc=App.activeDocument())
|
||||
found, base_object = utils.find_object(base_object, doc=App.activeDocument())
|
||||
if not found:
|
||||
_err(translate("draft","Wrong input: base_object {} not in document.").format(base_object_str))
|
||||
_err(translate("draft","Wrong input: base_object not in document."))
|
||||
return None
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user