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

Fix T39112: increment snap does not work in perspective view at 0.01 scale...

Fix T39112: increment snap does not work in perspective view at 0.01 scale (for scene and grid floor)

In case of "floor" grid (i.e. perspective views), unit_scale correction was not applied...
parent a7ab389d
No related branches found
No related tags found
No related merge requests found
...@@ -3262,9 +3262,8 @@ static void view3d_main_area_draw_objects(const bContext *C, ARegion *ar, const ...@@ -3262,9 +3262,8 @@ static void view3d_main_area_draw_objects(const bContext *C, ARegion *ar, const
glEnable(GL_MULTISAMPLE_ARB); glEnable(GL_MULTISAMPLE_ARB);
} }
/* needs to be done always, gridview is adjusted in drawgrid() now, but only for ortho views. */
/* needs to be done always, gridview is adjusted in drawgrid() now */ rv3d->gridview = v3d->grid / scene->unit.scale_length;
rv3d->gridview = v3d->grid;
if ((rv3d->view == RV3D_VIEW_USER) || (rv3d->persp != RV3D_ORTHO)) { if ((rv3d->view == RV3D_VIEW_USER) || (rv3d->persp != RV3D_ORTHO)) {
if ((v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) { if ((v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment