Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoilnen Leite <joilnen.leite@gmail.com>2008-09-29 08:36:18 +0400
committerJoilnen Leite <joilnen.leite@gmail.com>2008-09-29 08:36:18 +0400
commitcddd38f539336052a8a6bfe96b1c5efae8b40165 (patch)
tree97f8470dc419f6796a648c57831334f9fb7a6b7e /source/blender/src/toets.c
parent425264d7ccd30fb72db6a9d2d9c326aa3571f8fe (diff)
fixing a little problem with grid after last view commit
Diffstat (limited to 'source/blender/src/toets.c')
-rw-r--r--source/blender/src/toets.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c
index 8b5decdfe94..90749268a58 100644
--- a/source/blender/src/toets.c
+++ b/source/blender/src/toets.c
@@ -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;
}
}