[Bf-blender-cvs] [cf6a101d23b] blender2.8: Correct assert generating tool tip/keymap

Campbell Barton noreply at git.blender.org
Wed Nov 14 07:43:32 CET 2018


Commit: cf6a101d23b79bb824d9dd3eaaf8c989a0211a02
Author: Campbell Barton
Date:   Wed Nov 14 17:40:12 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBcf6a101d23b79bb824d9dd3eaaf8c989a0211a02

Correct assert generating tool tip/keymap

===================================================================

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 14090c0f11d..f3fa12f9ce4 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_common.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py
@@ -865,9 +865,8 @@ def keymap_from_context(context, space_type):
                             'WEIGHT_PAINT': "weight_tool",
                             'TEXTURE_PAINT': "image_tool",
                             'GPENCIL_PAINT': "gpencil_tool",
-                        }.get(mode, (None, None))
+                        }.get(mode, None)
                         if attr is not None:
-                            kmi_hack_brush_select_properties.paint_mode = mode
                             setattr(kmi_hack_brush_select_properties, attr, item.data_block)
                             kmi_found = wm.keyconfigs.find_item_from_operator(
                                 idname="paint.brush_select",



More information about the Bf-blender-cvs mailing list