fix [#33431] Impossible to add "None" string to a property
authorCampbell Barton <ideasman42@gmail.com>
Sat, 8 Dec 2012 09:43:02 +0000 (09:43 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 8 Dec 2012 09:43:02 +0000 (09:43 +0000)
release/scripts/startup/bl_operators/wm.py

index 0945098bd1e41f145ea732be2af1ee453ee8e800..105b532ac381406e2ed415c0fc6ef2c1f292a8a7 100644 (file)
@@ -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