fix [#33431] Impossible to add "None" string to a property

This commit is contained in:
Campbell Barton 2012-12-08 09:43:02 +00:00
parent a3ce9408a2
commit 7b9adab594

@ -1049,6 +1049,8 @@ class WM_OT_properties_edit(Operator):
try:
value_eval = eval(value)
# assert else None -> None, not "None", see [#33431]
assert(type(value_eval) in {str, float, int, bool, tuple, list})
except:
value_eval = value