Fix for [#19921] pressing NumpadDot on isolated mode centers the 3D cursor
authorMatt Ebb <matt@mke3.net>
Fri, 4 Dec 2009 04:41:32 +0000 (04:41 +0000)
committerMatt Ebb <matt@mke3.net>
Fri, 4 Dec 2009 04:41:32 +0000 (04:41 +0000)
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_ops.c

index 9737e0cb167bc4331832446136d87be1958e0d07..844ee2973ce3f8dcf738c8c01e4b379d44c02b01 100644 (file)
@@ -1208,10 +1208,6 @@ static int viewcenter_exec(bContext *C, wmOperator *op) /* like a localview with
                new_dist*= size;
        }
 
-       v3d->cursor[0]= -new_ofs[0];
-       v3d->cursor[1]= -new_ofs[1];
-       v3d->cursor[2]= -new_ofs[2];
-
        if (rv3d->persp==RV3D_CAMOB) {
                rv3d->persp= RV3D_PERSP;
                smooth_view(C, v3d->camera, NULL, new_ofs, NULL, &new_dist, NULL);
index 62672dc19bcca8a8b8d519979e77c33685c530f7..3b60d4d555fff96b402f04fe12d44896a4e889f0 100644 (file)
@@ -180,19 +180,6 @@ void view3d_keymap(wmKeyConfig *keyconf)
     kmi= WM_keymap_add_item(keymap, "VIEW3D_OT_viewnumpad", PAD7, KM_PRESS, KM_SHIFT|KM_CTRL, 0);
     RNA_enum_set(kmi->ptr, "type", RV3D_VIEW_BOTTOM);
     RNA_boolean_set(kmi->ptr, "align_active", TRUE);
-    
-
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_view_orbit", PAD2, KM_PRESS, 0, 0)->ptr, "type", V3D_VIEW_STEPDOWN);
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_viewnumpad", PAD3, KM_PRESS, 0, 0)->ptr, "type", RV3D_VIEW_RIGHT);
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_view_orbit", PAD4, KM_PRESS, 0, 0)->ptr, "type", V3D_VIEW_STEPLEFT);
-       WM_keymap_add_item(keymap, "VIEW3D_OT_view_persportho", PAD5, KM_PRESS, 0, 0);
-       
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_view_orbit", PAD6, KM_PRESS, 0, 0)->ptr, "type", V3D_VIEW_STEPRIGHT);
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_viewnumpad", PAD7, KM_PRESS, 0, 0)->ptr, "type", RV3D_VIEW_TOP);
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_view_orbit", PAD8, KM_PRESS, 0, 0)->ptr, "type", V3D_VIEW_STEPUP);
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_viewnumpad", PAD1, KM_PRESS, KM_CTRL, 0)->ptr, "type", RV3D_VIEW_BACK);
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_viewnumpad", PAD3, KM_PRESS, KM_CTRL, 0)->ptr, "type", RV3D_VIEW_LEFT);
-       RNA_enum_set(WM_keymap_add_item(keymap, "VIEW3D_OT_viewnumpad", PAD7, KM_PRESS, KM_CTRL, 0)->ptr, "type", RV3D_VIEW_BOTTOM);
 
        WM_keymap_add_item(keymap, "VIEW3D_OT_localview", PADSLASHKEY, KM_PRESS, 0, 0);