View 3D: Use Z Key for "geometry occlusion" toggle

Note: The header doesn't update until you mouse hover it.
This commit is contained in:
Dalai Felinto
2018-05-14 17:17:02 +02:00
parent 627a783784
commit 7cb2d55bd4

View File

@@ -415,6 +415,9 @@ void view3d_keymap(wmKeyConfig *keyconf)
WM_keymap_add_item(keymap, "VIEW3D_OT_toggle_render", ZKEY, KM_PRESS, KM_SHIFT, 0);
kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", ZKEY, KM_PRESS, 0, 0);
RNA_string_set(kmi->ptr, "data_path", "space_data.use_occlude_geometry");
/* selection*/
kmi = WM_keymap_add_item(keymap, "VIEW3D_OT_select", SELECTMOUSE, KM_PRESS, 0, 0);
RNA_boolean_set(kmi->ptr, "extend", false);