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:
authorTon Roosendaal <ton@blender.org>2005-03-24 00:08:15 +0300
committerTon Roosendaal <ton@blender.org>2005-03-24 00:08:15 +0300
commit6be51da81af0212dc6ed7099dd9f514e5f3e7e3f (patch)
tree5ce35a998b240d4fe3f3c73a22d98210532fa7fa
parent0ad76a613da40312aef648679a3161117bd9dfae (diff)
Moved init of new gridview variable, for adaptive grid steps, out of
function that was only called in ortho... grid snapping otherwise can not work. Thanks i-Alexander for reporting!
-rw-r--r--source/blender/src/drawview.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 0a07d594348..9bfab7af5fe 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -554,8 +554,6 @@ static void drawgrid(void)
BIF_ThemeColor(TH_GRID);
persp(PERSP_WIN);
- G.vd->gridview= G.vd->grid;
-
if(dx<6.0) {
G.vd->gridview*= 10.0;
dx*= 10.0;
@@ -1794,6 +1792,9 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
myloadmatrix(G.vd->viewmat);
persp(PERSP_STORE); // store correct view for persp(PERSP_VIEW) calls
+ // needs to be done always, gridview is adjusted in drawgrid() now
+ G.vd->gridview= G.vd->grid;
+
if(G.vd->view==0 || G.vd->persp!=0) {
drawfloor();
if(G.vd->persp==2) {