[#17845] View Snapping causes background grid confusion
authorMartin Poirier <theeth@yahoo.com>
Thu, 16 Oct 2008 21:43:25 +0000 (21:43 +0000)
committerMartin Poirier <theeth@yahoo.com>
Thu, 16 Oct 2008 21:43:25 +0000 (21:43 +0000)
view needs to be reset while moving to take care of view snapping properly.

source/blender/src/view.c

index 6f558152ac700c69ca415542bd21b235287bcfff..66af3539e88e8aebbaec4d2cb7caa53ec9d16ca9 100644 (file)
@@ -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];