Commit: 7f284f5134ca0cf37c18302975c9632ef13f269d Author: Chris Blackbourn Date: Wed Sep 21 09:34:11 2022 +1200 Branches: master https://developer.blender.org/rB7f284f5134ca0cf37c18302975c9632ef13f269d
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: _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs