Fix T42945: rv3d->gridview was not set correctly in view3d_draw_objects.
This fixes both transform snapping in persp views, and 'snap cursor to grid' feature. Was only really visible with Imperial units.
This commit is contained in:
parent
5e67779d80
commit
5cc199e495
Notes:
blender-bot
2023-02-14 09:42:36 +01:00
Referenced by issue #42945, Imperial Snap Grid Element Perspective Referenced by issue #42945, Imperial Snap Grid Element Perspective
|
@ -2646,10 +2646,7 @@ static void view3d_draw_objects(
|
|||
|
||||
if (!draw_offscreen) {
|
||||
/* needs to be done always, gridview is adjusted in drawgrid() now, but only for ortho views. */
|
||||
rv3d->gridview = v3d->grid;
|
||||
if (scene->unit.system) {
|
||||
rv3d->gridview /= scene->unit.scale_length;
|
||||
}
|
||||
rv3d->gridview = ED_view3d_grid_scale(scene, v3d, grid_unit);
|
||||
|
||||
if ((rv3d->view == RV3D_VIEW_USER) || (rv3d->persp != RV3D_ORTHO)) {
|
||||
if ((v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) {
|
||||
|
|
Loading…
Reference in New Issue