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:
authorCampbell Barton <ideasman42@gmail.com>2006-06-26 16:18:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-06-26 16:18:15 +0400
commit17929dcab8399c065f39dd46534a3c53cd4c8209 (patch)
treee01c4620cfa81ee2d0732b03084b5fa8b0c77e8d
parent1aab013bcc80d4e771d78f732511c44ed302885c (diff)
prev commit broke canceling a fly, works again.
-rw-r--r--source/blender/src/editview.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index 85ec9538276..33f9cefa041 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -2292,7 +2292,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) { /* not a camera view */
G.vd->viewbut=1;
VECCOPY(G.vd->camera->loc, ofs_backup);
VECCOPY(G.vd->camera->rot, rot_backup);
@@ -2301,7 +2301,6 @@ 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; /* if we canceled from ortho mode then go back into it*/
}
} else if (persp_backup!=2) { /* not camera */
/* Apply the fly mode view */