diff options
author | Chris Blackbourn <chrisbblend@gmail.com> | 2022-09-21 00:34:11 +0300 |
---|---|---|
committer | Chris Blackbourn <chrisbblend@gmail.com> | 2022-09-21 00:44:59 +0300 |
commit | 7f284f5134ca0cf37c18302975c9632ef13f269d (patch) | |
tree | 52a29b79638e9422e71226db9e4856179659c915 /release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py | |
parent | 1df58ec54071cf8f758add66617a11cfb814e6ce (diff) |
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
Diffstat (limited to 'release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py')
-rw-r--r-- | release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |