Commit: 170e03aa98b20d9444884d37ae8fe8b48426fde4 Author: Chris Blackbourn Date: Wed Sep 21 09:34:11 2022 +1200 Branches: blender-v2.93-release https://developer.blender.org/rB170e03aa98b20d9444884d37ae8fe8b48426fde4
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 ef398d5e08f..c1e6a5c6c77 100644 --- a/release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py +++ b/release/scripts/modules/bl_keymap_utils/keymap_from_toolbar.py @@ -191,7 +191,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 @@ -217,7 +217,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 [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
