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:
authorCampbell Barton <ideasman42@gmail.com>2007-10-08 21:37:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-10-08 21:37:04 +0400
commitc53593972687c62705c6827f7f20fbc50bd8a539 (patch)
treefb215afb6af771101455a5cfe0b5fdaceaf67dc8 /source/blender/src
parent0b9f1be4647461583bfed611990e3d96faac9102 (diff)
gridsubdiv was not initialized properly
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/drawview.c2
-rw-r--r--source/blender/src/space.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 2bcc7ed76a7..d67df1e0e97 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -2443,7 +2443,7 @@ static void view3d_panel_properties(short cntrl) // VIEW3D_HANDLER_SETTINGS
uiBlockBeginAlign(block);
uiDefButF(block, NUM, REDRAWVIEW3D, "Spacing:", 10, 200, 140, 19, &vd->grid, 0.001, 100.0, 10, 0, "Set the distance between grid lines");
uiDefButS(block, NUM, REDRAWVIEW3D, "Lines:", 10, 180, 140, 19, &vd->gridlines, 0.0, 100.0, 100, 0, "Set the number of grid lines in perspective view");
- uiDefButS(block, NUM, REDRAWVIEW3D, "Divisions:", 10, 160, 140, 19, &vd->gridsubdiv, 0.0, 100.0, 100, 0, "Set the number of grid lines");
+ uiDefButS(block, NUM, REDRAWVIEW3D, "Divisions:", 10, 160, 140, 19, &vd->gridsubdiv, 1.0, 100.0, 100, 0, "Set the number of grid lines");
uiBlockEndAlign(block);
uiDefBut(block, LABEL, 1, "3D Display:", 160, 220, 150, 19, NULL, 0.0, 0.0, 0, 0, "");
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index 6577421078d..923a2ae010e 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -2620,6 +2620,8 @@ static void initview3d(ScrArea *sa)
vd->far= 500.0f;
vd->grid= 1.0f;
vd->gridlines= 16;
+ vd->gridsubdiv = 10;
+
vd->lay= vd->layact= 1;
if(G.scene) {
vd->lay= vd->layact= G.scene->lay;