Skip to content
Snippets Groups Projects
Commit e483a21c authored by Bastien Montagne's avatar Bastien Montagne
Browse files

Fix T42994: Own recent regression in fix for T42945 (rB5cc199e49581),

side/front/top ortho views would no more adapt their snapping unit to zoom factor.

This code would need slightly more refactor actually, but this will be for after release!
parent 20aed660
Branches
Tags
No related merge requests found
......@@ -2656,6 +2656,7 @@ static void view3d_draw_objects(
else {
if ((v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) {
ED_region_pixelspace(ar);
*grid_unit = NULL; /* drawgrid need this to detect/affect smallest valid unit... */
drawgrid(&scene->unit, ar, v3d, grid_unit);
/* XXX make function? replaces persp(1) */
glMatrixMode(GL_PROJECTION);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment