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:
-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 */