Keymap: toggle context gizmo instead of the tool gizmo
When a tool is activated in many cases the gizmo is needed so toggling them isn't so useful. Change behavior to use the active object instead so users who prefer to enable gizmos in the popover can toggle them. Also remove duplicate keymap item.
This commit is contained in:
@@ -1116,11 +1116,9 @@ def km_view3d(params):
|
||||
# New pie menus.
|
||||
items.extend([
|
||||
("wm.context_toggle", {"type": 'ACCENT_GRAVE', "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("data_path", 'space_data.show_gizmo_tool')]}),
|
||||
{"properties": [("data_path", 'space_data.show_gizmo_context')]}),
|
||||
op_menu_pie("VIEW3D_MT_pivot_pie", {"type": 'PERIOD', "value": 'PRESS'}),
|
||||
op_menu_pie("VIEW3D_MT_orientations_pie", {"type": 'COMMA', "value": 'PRESS'}),
|
||||
("wm.context_toggle", {"type": 'ACCENT_GRAVE', "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("data_path", 'space_data.show_gizmo_tool')]}),
|
||||
op_menu_pie(
|
||||
"VIEW3D_MT_shading_pie" if not params.use_v3d_shade_ex_pie else
|
||||
"VIEW3D_MT_shading_ex_pie",
|
||||
@@ -1177,7 +1175,7 @@ def km_view3d(params):
|
||||
("wm.context_toggle", {"type": 'COMMA', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("data_path", 'tool_settings.use_transform_pivot_point_align')]}),
|
||||
("wm.context_toggle", {"type": 'SPACE', "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("data_path", 'space_data.show_gizmo_tool')]}),
|
||||
{"properties": [("data_path", 'space_data.show_gizmo_context')]}),
|
||||
("wm.context_set_enum", {"type": 'PERIOD', "value": 'PRESS'},
|
||||
{"properties": [("data_path", 'tool_settings.transform_pivot_point'), ("value", 'CURSOR')]}),
|
||||
("wm.context_set_enum", {"type": 'PERIOD', "value": 'PRESS', "ctrl": True},
|
||||
|
||||
Reference in New Issue
Block a user