fixing a little problem with grid after last view commit
authorJoilnen Leite <joilnen.leite@gmail.com>
Mon, 29 Sep 2008 04:36:18 +0000 (04:36 +0000)
committerJoilnen Leite <joilnen.leite@gmail.com>
Mon, 29 Sep 2008 04:36:18 +0000 (04:36 +0000)
source/blender/src/toets.c

index 8b5decdfe94121e0b6fb99a587abaafedfac4a90..90749268a58a1fe4aa9542251a8b4825533b5689 100644 (file)
@@ -370,7 +370,11 @@ void persptoetsen(unsigned short event)
                                q1[1]= q1[2]= 0.0;
                                q1[3]= si;
                                QuatMul(G.vd->viewquat, G.vd->viewquat, q1);
-                               G.vd->view= -1;
+
+                               QUATCOPY(G.vd->lviewquat, G.vd->viewquat);
+                               G.vd->lpersp = G.vd->persp;
+
+                               G.vd->view= 0;
                        }
                        if(event==PAD2 || event==PAD8) {
                                /* horizontal axis */
@@ -385,7 +389,11 @@ void persptoetsen(unsigned short event)
                                q1[2]*= si;
                                q1[3]*= si;
                                QuatMul(G.vd->viewquat, G.vd->viewquat, q1);
-                               G.vd->view= -1;
+
+                               QUATCOPY(G.vd->lviewquat, G.vd->viewquat);
+                               G.vd->lpersp = G.vd->persp;
+
+                               G.vd->view= 0;
                        }
                }