diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-11-27 16:51:33 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-11-27 16:51:33 +0300 |
commit | e4e7dfc1d8c0486530e5cabd2e448bf79b2fdb0b (patch) | |
tree | 0c38da330157faaa0faa895be6d40827edbb7101 /source/blender/editors/transform/transform_mode_translate.c | |
parent | f9e994d0f463abb87761591e30c47a9613be6cca (diff) |
Fix transform snap mixed with incremental
The incremental was taking priority but the other elements are mandatory.
Diffstat (limited to 'source/blender/editors/transform/transform_mode_translate.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode_translate.c b/source/blender/editors/transform/transform_mode_translate.c index 183fc8f5dc3..a54de102966 100644 --- a/source/blender/editors/transform/transform_mode_translate.c +++ b/source/blender/editors/transform/transform_mode_translate.c @@ -389,7 +389,7 @@ static void applyTranslation(TransInfo *t, const int UNUSED(mval[2])) float incr_dir[3]; mul_v3_m3v3(incr_dir, t->spacemtx_inv, global_dir); - if (transform_snap_increment(t, incr_dir)) { + if (!(activeSnap(t) && validSnap(t)) && transform_snap_increment(t, incr_dir)) { mul_v3_m3v3(incr_dir, t->spacemtx, incr_dir); /* Test for mixed snap with grid. */ |