diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-16 15:31:03 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-16 15:33:19 +0300 |
commit | 3618b2c3599d172cad3e0ee3fa7bd0eb886771a2 (patch) | |
tree | 827ff85924041c68b6795813fa97ecdb0e4b3282 /release/scripts | |
parent | 39e760fa1da1884cbd32b91574dc8e81fa83dd34 (diff) |
Fix part of T65397: accidentally assigning shortcuts gives errors
This is not a proper solution, that will come later, this avoids the main
problematic error for now.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index d2e2a61826f..9a9975ad897 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -80,6 +80,10 @@ rna_module_prop = StringProperty( def context_path_validate(context, data_path): + # Silently ignore invalid data paths created by T65397. + if "(null)" in data_path: + return Ellipsis + try: value = eval("context.%s" % data_path) if data_path else Ellipsis except AttributeError as ex: |