Keymap: adjustments to shading keys
- Z shows pie menu (removed wire/xray toggles). - Alt-Z toggles x-ray. - Shift-Z toggles wireframe. - Shift-Alt-Z toggles overlays. Note that toggle overlays had no binding for 2.7x, this is likely not a heavily used option and could even be left out.
This commit is contained in:
@@ -1022,13 +1022,14 @@ def km_view3d(params):
|
||||
{"properties": [("data_path", 'space_data.show_gizmo_tool')]}),
|
||||
op_menu_pie("VIEW3D_MT_pivot_pie", {"type": 'PERIOD', "value": 'PRESS'}),
|
||||
op_menu_pie("VIEW3D_MT_orientations_pie", {"type": 'COMMA', "value": 'PRESS'}),
|
||||
op_menu_pie("VIEW3D_MT_shading_pie", {"type": 'D', "value": 'PRESS'}),
|
||||
("wm.context_toggle_enum", {"type": 'Z', "value": 'PRESS'},
|
||||
{"properties": [("data_path", 'space_data.shading.type'), ("value_1", 'WIREFRAME'), ("value_2", 'SOLID')]}),
|
||||
("view3d.toggle_shading", {"type": 'Z', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("type", 'MATERIAL')]}),
|
||||
("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", {"type": 'Z', "value": 'PRESS'}),
|
||||
("view3d.toggle_shading", {"type": 'Z', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("type", 'RENDERED')]}),
|
||||
{"properties": [("type", 'WIREFRAME')]}),
|
||||
("view3d.toggle_xray", {"type": 'Z', "value": 'PRESS', "alt": True}, None),
|
||||
("wm.context_toggle", {"type": 'Z', "value": 'PRESS', "alt": True, "shift": True},
|
||||
{"properties": [("data_path", "space_data.overlay.show_overlays")]}),
|
||||
])
|
||||
else:
|
||||
items.extend([
|
||||
|
||||
@@ -3848,21 +3848,8 @@ class VIEW3D_MT_shading_pie(Menu):
|
||||
|
||||
view = context.space_data
|
||||
|
||||
pie.prop_enum(view.shading, "type", value='WIREFRAME')
|
||||
pie.prop_enum(view.shading, "type", value='SOLID')
|
||||
|
||||
xray_active = (
|
||||
(context.mode in {'POSE', 'EDIT_MESH'}) or
|
||||
(view.shading.type in {'SOLID', 'WIREFRAME'})
|
||||
)
|
||||
if xray_active:
|
||||
sub = pie
|
||||
else:
|
||||
sub = pie.row()
|
||||
sub.active = False
|
||||
sub.operator("view3d.toggle_xray", text="Toggle X-Ray", icon='XRAY')
|
||||
|
||||
pie.prop(view.overlay, "show_overlays", text="Toggle Overlays", icon='OVERLAY')
|
||||
pie.prop_enum(view.shading, "type", value='WIREFRAME')
|
||||
pie.prop_enum(view.shading, "type", value='MATERIAL')
|
||||
pie.prop_enum(view.shading, "type", value='RENDERED')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user