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
This commit is contained in:
parent
5c20363e37
commit
170e03aa98
Notes:
blender-bot
2023-02-14 08:33:26 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #101138, UV editor: Console warning when hovered over tools
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue