[Bf-blender-cvs] [1a8642937dd] master: Fix T72272: Error setting tool in weight paint mode
Campbell Barton
noreply at git.blender.org
Mon Dec 9 22:17:17 CET 2019
Commit: 1a8642937dde9b323f055a26a00ece1c3ff6b0e8
Author: Campbell Barton
Date: Tue Dec 10 08:15:43 2019 +1100
Branches: master
https://developer.blender.org/rB1a8642937dde9b323f055a26a00ece1c3ff6b0e8
Fix T72272: Error setting tool in weight paint mode
Error from recent fallback tool support.
===================================================================
M release/scripts/startup/bl_ui/space_toolsystem_common.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py
index 6668b261b33..01bd6dc3068 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_common.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py
@@ -913,7 +913,7 @@ def _activate_by_item(context, space_type, item, index, *, as_fallback=False):
index=index,
idname_fallback=item_fallback.idname if item_fallback else "",
- keymap_fallback=(item_fallback.keymap[0] or "") if item_fallback else "",
+ keymap_fallback=item_fallback.keymap[0] if (item_fallback and item_fallback.keymap) else "",
)
WindowManager = bpy.types.WindowManager
More information about the Bf-blender-cvs
mailing list