rewiten a if statment
authorJoilnen Leite <joilnen.leite@gmail.com>
Mon, 29 Sep 2008 09:54:26 +0000 (09:54 +0000)
committerJoilnen Leite <joilnen.leite@gmail.com>
Mon, 29 Sep 2008 09:54:26 +0000 (09:54 +0000)
source/blender/src/toets.c

index e40a2f5c044586041e11351b7f3d6795f67a683c..bb2e83d8fa5363cbe94004ea783d8d67248dbd4c 100644 (file)
@@ -299,7 +299,7 @@ void persptoetsen(unsigned short event)
                                G.vd->lpersp= G.vd->persp;
                                G.vd->lastview_set= 1;
                        }
-                       else if(G.vd->lastview_set) {
+                       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;