diff options
Diffstat (limited to 'release/scripts')
-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: |