forked from bartvdbraak/blender
fix [#33431] Impossible to add "None" string to a property
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user