feature request from VenomGfx- lock to active as an operator since its tedious settin...
[blender.git] / source / blender / editors / space_view3d / view3d_ops.c
index 99da487f923222ffef4a57baa169bb97d4b66301..f760254e8d25a8e1a6fc4b40b23c1f132f7f579e 100644 (file)
@@ -72,6 +72,8 @@ void view3d_operatortypes(void)
        WM_operatortype_append(VIEW3D_OT_background_image_add);
        WM_operatortype_append(VIEW3D_OT_background_image_remove);
        WM_operatortype_append(VIEW3D_OT_view_selected);
+       WM_operatortype_append(VIEW3D_OT_view_lock_clear);
+       WM_operatortype_append(VIEW3D_OT_view_lock_to_active);
        WM_operatortype_append(VIEW3D_OT_view_center_cursor);
        WM_operatortype_append(VIEW3D_OT_view_center_camera);
        WM_operatortype_append(VIEW3D_OT_select);
@@ -135,7 +137,10 @@ void view3d_keymap(wmKeyConfig *keyconf)
        WM_keymap_verify_item(keymap, "VIEW3D_OT_dolly", MIDDLEMOUSE, KM_PRESS, KM_CTRL | KM_SHIFT, 0);
        WM_keymap_verify_item(keymap, "VIEW3D_OT_view_selected", PADPERIOD, KM_PRESS, 0, 0);
        WM_keymap_verify_item(keymap, "VIEW3D_OT_view_center_cursor", PADPERIOD, KM_PRESS, KM_CTRL, 0);
-       
+
+       WM_keymap_verify_item(keymap, "VIEW3D_OT_view_lock_to_active", PADPERIOD, KM_PRESS, KM_SHIFT, 0);
+       WM_keymap_verify_item(keymap, "VIEW3D_OT_view_lock_clear", PADPERIOD, KM_PRESS, KM_ALT, 0);
+
        WM_keymap_verify_item(keymap, "VIEW3D_OT_fly", FKEY, KM_PRESS, KM_SHIFT, 0);
 
        WM_keymap_verify_item(keymap, "VIEW3D_OT_smoothview", TIMER1, KM_ANY, KM_ANY, 0);