Skip to content

Commit 0c30786

Browse files
committed
allow entering tuple in the inspector for size, point, etc.
1 parent d4ac24b commit 0c30786

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uiView.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,11 @@ def InterpretPropertyFromString(self, key, valStr):
552552
val = float(valStr)
553553
elif propType in ["point", "floatpoint"]:
554554
val = ast.literal_eval(valStr)
555-
if not isinstance(val, list) or len(val) != 2:
555+
if not isinstance(val, (list, tuple)) or len(val) != 2:
556556
raise Exception()
557557
elif propType == "size":
558558
val = ast.literal_eval(valStr)
559-
if not isinstance(val, list) or len(val) != 2:
559+
if not isinstance(val, (list, tuple)) or len(val) != 2:
560560
raise Exception()
561561
except:
562562
return None

0 commit comments

Comments
 (0)