[Bf-blender-cvs] [3618b2c3599] master: Fix part of T65397: accidentally assigning shortcuts gives errors
Brecht Van Lommel
noreply at git.blender.org
Mon Sep 16 14:33:51 CEST 2019
Commit: 3618b2c3599d172cad3e0ee3fa7bd0eb886771a2
Author: Brecht Van Lommel
Date: Mon Sep 16 14:31:03 2019 +0200
Branches: master
https://developer.blender.org/rB3618b2c3599d172cad3e0ee3fa7bd0eb886771a2
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.
===================================================================
M release/scripts/startup/bl_operators/wm.py
===================================================================
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:
More information about the Bf-blender-cvs
mailing list