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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2006-07-03 11:20:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-07-03 11:20:19 +0400
commitb6c9d869050c63ac2a804ff60a0140066cb667b8 (patch)
treef67a0cf31eee23a8c37ba57cdd3362f5e55f84b1 /source
parentb8d8c1fd60a756ebc9d583e96004b91faf8213b5 (diff)
BeBraw noticed that canceling fly mode didnt return to Ortho mode. fixed
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index c887d54d452..2b89b720c1d 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -2314,7 +2314,7 @@ void fly(void)
/* Revert to original view? */
if (action == 2) { /* action == 2 means the user pressed Esc of RMB, and not to apply view to camera */
- if (persp_backup==2) { /* not a camera view */
+ if (persp_backup==2) { /* a camera view */
G.vd->viewbut=1;
VECCOPY(G.vd->camera->loc, ofs_backup);
VECCOPY(G.vd->camera->rot, rot_backup);
@@ -2323,6 +2323,7 @@ void fly(void)
/* Non Camera we need to reset the view back to the original location bacause the user canceled*/
QUATCOPY(G.vd->viewquat, rot_backup);
VECCOPY(G.vd->ofs, ofs_backup);
+ G.vd->persp= persp_backup;
}
} else if (persp_backup!=2) { /* not camera */
/* Apply the fly mode view */