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:
authorMartin Poirier <theeth@yahoo.com>2008-10-17 01:43:25 +0400
committerMartin Poirier <theeth@yahoo.com>2008-10-17 01:43:25 +0400
commitd8d2358ab2b31ec5cd3b87b336589db3b22341b3 (patch)
tree28631379ab9aee9522402212407b758d1328e98b /source/blender/src
parent58ce460cf72a7af5c43b0df8add8c21f2f3e80ab (diff)
[#17845] View Snapping causes background grid confusion
view needs to be reset while moving to take care of view snapping properly.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index 6f558152ac7..66af3539e88 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -1004,7 +1004,6 @@ void viewmove(int mode)
/* are we translating, rotating or zooming? */
if(mode==0) {
if(G.vd->view!=0) scrarea_queue_headredraw(curarea); /*for button */
- G.vd->view= 0;
}
if(G.vd->persp==V3D_CAMOB && mode!=1 && G.vd->camera) {
G.vd->persp= V3D_PERSP;
@@ -1014,6 +1013,8 @@ void viewmove(int mode)
}
if(mode==0) { /* view rotate */
+ G.vd->view= 0; /* need to reset everytime because of view snapping */
+
if (U.uiflag & USER_AUTOPERSP) G.vd->persp= V3D_PERSP;
if (U.flag & USER_TRACKBALL) mvalball[0]= mval[0];