[Bf-blender-cvs] [aa7449e691f] blender-v3.3-release: Fix T101138: remove console spam when hovering over toolbar in uv editor
Chris Blackbourn
noreply at git.blender.org
Fri Sep 30 14:39:54 CEST 2022
Commit: aa7449e691f54b58d0a5af7986b2f7bf57e1d056
Author: Chris Blackbourn
Date: Wed Sep 21 09:34:11 2022 +1200
Branches: blender-v3.3-release
https://developer.blender.org/rBaa7449e691f54b58d0a5af7986b2f7bf57e1d056
Fix T101138: remove console spam when hovering over toolbar in uv editor
Reviewers: Campbell Barton <ideasman42>, Ryan Inch <Imaginer>
Differential Revision: https://developer.blender.org/D16015
===================================================================
M release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py
===================================================================
diff --git a/release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py b/release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py
index f75a38c1c66..09a55827128 100644
--- a/release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py
+++ b/release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py
@@ -173,7 +173,7 @@ def generate(context, space_type, *, use_fallback_keys=True, use_reset=True):
mode = context.active_object.mode
# See: BKE_paint_get_tool_prop_id_from_paintmode
if space_type == 'IMAGE_EDITOR':
- if context.space_data.ui_mode == 'PAINT':
+ if context.space_data.mode == 'PAINT':
attr = "image_tool"
else:
attr = None
@@ -200,7 +200,7 @@ def generate(context, space_type, *, use_fallback_keys=True, use_reset=True):
properties=kmi_hack_brush_select_properties,
include={'KEYBOARD'},
)[1]
- elif mode in {'PARTICLE_EDIT', 'SCULPT_GPENCIL'}:
+ elif mode in {'EDIT', 'PARTICLE_EDIT', 'SCULPT_GPENCIL'}:
# Doesn't use brushes
pass
else:
More information about the Bf-blender-cvs
mailing list