diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-10-03 07:29:34 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-10-03 07:29:34 +0400 |
commit | 5f7bd14073082f8c31e8540c99471e94ea11529c (patch) | |
tree | 191345195432206aa57f99821805df5191cef3d8 /source/blender/src/toets.c | |
parent | 1ce81854f79e3d4af1056510041250b2b33c5f1f (diff) |
Added back a few lines that were accidentally chopped out when fixing pad0 view feature. This means that the grid is drawn correctly (i.e. not shown) when the view is rotated using the numpad up/down/left/right keys.
Diffstat (limited to 'source/blender/src/toets.c')
-rw-r--r-- | source/blender/src/toets.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index bb2e83d8fa5..162d652afd1 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -375,6 +375,7 @@ 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= 0; } if(event==PAD2 || event==PAD8) { /* horizontal axis */ @@ -389,6 +390,7 @@ void persptoetsen(unsigned short event) q1[2]*= si; q1[3]*= si; QuatMul(G.vd->viewquat, G.vd->viewquat, q1); + G.vd->view= 0; } } |