(no commit message)
[blender-staging.git] / source / blender / src / toets.c
index 162d652afd13b3bde7e1f41847de769d6e69c2bf..804660c34336b62b9ac752df890dc8ca6a2671c0 100644 (file)
@@ -292,17 +292,15 @@ void persptoetsen(unsigned short event)
                }
                else if(event==PAD0) {
                        /* lastview -  */
-                       if(G.vd->lastview_set==0) {
+                       if(G.vd->persp != V3D_CAMOB) {
                                /* store settings of current view before allowing overwriting with camera view */
                                QUATCOPY(G.vd->lviewquat, G.vd->viewquat);
                                G.vd->lview= G.vd->view;
                                G.vd->lpersp= G.vd->persp;
-                               G.vd->lastview_set= 1;
                        }
                        else {
                                /* return to settings of last view */
                                axis_set_view(G.vd->lviewquat[0], G.vd->lviewquat[1], G.vd->lviewquat[2], G.vd->lviewquat[3], G.vd->lview, G.vd->lpersp);
-                               G.vd->lastview_set= 0;
                        }
                        
                        if(G.qual==LR_ALTKEY) {