Fix T64766: use grid size from user preferences
authorJacques Lucke <mail@jlucke.com>
Mon, 20 May 2019 09:48:37 +0000 (11:48 +0200)
committerJacques Lucke <mail@jlucke.com>
Mon, 20 May 2019 09:48:37 +0000 (11:48 +0200)
source/blender/editors/interface/view2d_draw.c

index 2568193ee23eea6ad4a9ee8786b77f113feb1c4c..691f145c4082d38f64c252e0c2626d76ee4aa067 100644 (file)
@@ -53,7 +53,7 @@
 /* Compute display grid resolution
  ********************************************************/
 
-#define MIN_MAJOR_LINE_DISTANCE (UI_DPI_FAC * 50)
+#define MIN_MAJOR_LINE_DISTANCE (U.v2d_min_gridsize)
 
 static float select_major_distance(const float *possible_distances,
                                    uint amount,