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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 6a0ef9a11b5..e882a1d09c0 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -535,6 +535,7 @@ static void drawgrid(void)
/* check zoom out */
BIF_ThemeColor(TH_GRID);
persp(PERSP_WIN);
+ setlinestyle(3);
if(dx<6.0) {
dx*= 10.0;
@@ -585,13 +586,16 @@ static void drawgrid(void)
else {
BIF_ThemeColorBlend(TH_BACK, TH_GRID, dx/60.0);
drawgrid_draw(wx, wy, x, y, dx);
- BIF_ThemeColor(TH_GRID);
- drawgrid_draw(wx, wy, x, y, dx*10);
+ BIF_ThemeColor(TH_GRID);
+ setlinestyle(0);
+ drawgrid_draw(wx, wy, x, y, dx*10); /* 1:1 */
}
}
else {
BIF_ThemeColorBlend(TH_BACK, TH_GRID, dx/60.0);
- drawgrid_draw(wx, wy, x, y, dx);
+ setlinestyle(0);
+ drawgrid_draw(wx, wy, x, y, dx); /* 1:1 */
+ setlinestyle(3);
BIF_ThemeColor(TH_GRID);
drawgrid_draw(wx, wy, x, y, dx*10);
}