Fix large incremental snap values in uv editor

Regression in rBa7aa0f1a0c24.

The default values of `t->snap` have been changed.
This commit is contained in:
Germano Cavalcante 2022-10-23 11:34:44 -03:00
parent da36efdf48
commit 93afc50ac3
1 changed files with 2 additions and 2 deletions

View File

@ -686,8 +686,8 @@ void initTranslation(TransInfo *t)
t->num.flag = 0;
t->num.idx_max = t->idx_max;
t->snap[0] = 1.0;
t->snap[1] = t->snap_spatial_precision;
t->snap[0] = t->snap_spatial[0];
t->snap[1] = t->snap_spatial[0] * t->snap_spatial_precision;
copy_v3_fl(t->num.val_inc, t->snap[0]);
t->num.unit_sys = t->scene->unit.system;