diff options
author | Stefan Gartner <stefang@aon.at> | 2003-01-24 10:18:30 +0300 |
---|---|---|
committer | Stefan Gartner <stefang@aon.at> | 2003-01-24 10:18:30 +0300 |
commit | 3c9e4d3227630b000258dfc82b6e462bd5b8c438 (patch) | |
tree | 43a9c0508c9975fb0266e27273e4c8e6d5559fd3 /source | |
parent | d1ca120fb8933fbbdd001fa6370eb82e35a8b052 (diff) |
make switching to bottom, back, and left view (shift+pad7, shift+pad1
and shift+pad1) work when in camera view
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/toets.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index 4eee6bd8e3e..7a814b24cf9 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -269,6 +269,7 @@ void persptoetsen(unsigned short event) G.vd->viewquat[2]= 0.0; G.vd->viewquat[3]= 0.0; G.vd->view= 7; + if(G.vd->persp>=2) G.vd->persp= perspo; } else if(event==PAD1) { G.vd->viewquat[0]= 0.0; @@ -276,6 +277,7 @@ void persptoetsen(unsigned short event) G.vd->viewquat[2]= (float)-cos(M_PI/4.0); G.vd->viewquat[3]= (float)-cos(M_PI/4.0); G.vd->view=1; + if(G.vd->persp>=2) G.vd->persp= perspo; } else if(event==PAD3) { G.vd->viewquat[0]= 0.5; @@ -283,6 +285,7 @@ void persptoetsen(unsigned short event) G.vd->viewquat[2]= 0.5; G.vd->viewquat[3]= 0.5; G.vd->view=3; + if(G.vd->persp>=2) G.vd->persp= perspo; } else if(event==PADMINUS) { /* deze min en max staan ook in viewmove() */ |