[Bf-blender-cvs] [93afc50ac3e] master: Fix large incremental snap values in uv editor
Germano Cavalcante
noreply at git.blender.org
Sun Oct 23 16:35:01 CEST 2022
Commit: 93afc50ac3effb384d2fdcdbe193fb9da6191f96
Author: Germano Cavalcante
Date: Sun Oct 23 11:34:44 2022 -0300
Branches: master
https://developer.blender.org/rB93afc50ac3effb384d2fdcdbe193fb9da6191f96
Fix large incremental snap values in uv editor
Regression in rBa7aa0f1a0c24.
The default values of `t->snap` have been changed.
===================================================================
M source/blender/editors/transform/transform_mode_translate.c
===================================================================
diff --git a/source/blender/editors/transform/transform_mode_translate.c b/source/blender/editors/transform/transform_mode_translate.c
index c751a68092f..59d34c3918b 100644
--- a/source/blender/editors/transform/transform_mode_translate.c
+++ b/source/blender/editors/transform/transform_mode_translate.c
@@ -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;
More information about the Bf-blender-cvs
mailing list