diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-12-31 18:45:20 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-12-31 18:45:20 +0300 |
commit | 4d795cee4938f080f83aa367272d1ad25bba1fbd (patch) | |
tree | a3c2fb0460c8d1c5c1715bb2f87eb71d5a332039 /source/blender/editors/space_view3d/view3d_draw.c | |
parent | 82e0739f648134213161df500634c52d324c12cc (diff) |
Fix T60015: snap to grid - snaps only to largest increment
Caused by rBc7a96651dfa4 when trying to remove all uses of the deprecated `rv3d->gridview`.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index b6ded48d53f..a64ba5b2197 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -780,9 +780,9 @@ float ED_view3d_grid_scale(Scene *scene, View3D *v3d, const char **grid_unit) return v3d->grid * ED_scene_grid_scale(scene, grid_unit); } -/* Simulates the grid scale that is visualized by the shaders drawing functions. - * The actual code is seen in `object_grid_frag.glsl` when you get the `grid_res` value. - * Currently the simulation is done only when RV3D_VIEW_IS_AXIS. */ +/* Simulates the grid scale that is actually viewed. + * The actual code is seen in `object_grid_frag.glsl` (see `grid_res`). + * Currently the simulation is only done when RV3D_VIEW_IS_AXIS. */ float ED_view3d_grid_view_scale( Scene *scene, View3D *v3d, RegionView3D *rv3d, const char **grid_unit) { @@ -798,7 +798,7 @@ float ED_view3d_grid_view_scale( float lvl = (logf(grid_distance / grid_scale) / logf(grid_subdiv)); /* 1.3f is a visually chosen offset for the - * subdivision to match the displayed grid. */ + * subdivision to match the visible grid. */ lvl -= 1.3f; CLAMP_MIN(lvl, 0.0f); |