diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-10-30 20:21:50 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-10-30 20:22:30 +0300 |
commit | c8e61343867889fda08f800701956245bac4d30f (patch) | |
tree | fc671bb47ce6bf63c095cfbda1751296997b6647 /source/blender/editors/transform/transform.c | |
parent | 6f311ef57ec8760d020b6745be87a6770e5c58ce (diff) |
Fix T56499: Adapt incremental snapping to orthographic viewport scale.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r-- | source/blender/editors/transform/transform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index de41e6d3906..143c534d682 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -4669,7 +4669,7 @@ static void initSnapSpatial(TransInfo *t, float r_snap[3]) if (rv3d) { View3D *v3d = t->sa->spacedata.first; r_snap[0] = 0.0f; - r_snap[1] = ED_view3d_grid_scale(t->scene, v3d, NULL) * 1.0f; + r_snap[1] = ED_view3d_grid_view_scale(t->scene, v3d, rv3d, NULL) * 1.0f; r_snap[2] = r_snap[1] * 0.1f; } } |