diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-08 13:43:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-08 13:43:02 +0400 |
commit | 7b9adab594d1cc670d642b56ae8d76069ce91107 (patch) | |
tree | 27574a244f917d92839830248acb9f40e5e8e777 /release/scripts | |
parent | a3ce9408a2f20e70c2f037a7b9d3f332713a6931 (diff) |
fix [#33431] Impossible to add "None" string to a property
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 0945098bd1e..105b532ac38 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -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 |