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:
Diffstat (limited to 'source/blender/src/drawview.c')
-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) {