diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-01-30 18:55:07 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-01-30 18:55:07 +0300 |
commit | 216ebe0b7392d6da484cbf369402c65b3c6352f8 (patch) | |
tree | dfd351999a72aa996d366525a6b77383d1d8eaa8 /source/blender/editors/transform/transform_mode_rotate.c | |
parent | acc662ea5a778859eb5b7c31233c8e0fb8157de9 (diff) |
Fix T83092: Direction of rotation with View orientation changed in 2.91
This solution replaces {rBf9e994d0f463}.
That commit created an inverted orientation matrix but the 'Align to
Transform Orientation' operator doesn't work well with inverted matrices.
This new solution makes the rotate operator use the negative vector of the
axis.
Diffstat (limited to 'source/blender/editors/transform/transform_mode_rotate.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_rotate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform_mode_rotate.c b/source/blender/editors/transform/transform_mode_rotate.c index e81ea8b0a0d..fa02e5382a7 100644 --- a/source/blender/editors/transform/transform_mode_rotate.c +++ b/source/blender/editors/transform/transform_mode_rotate.c @@ -200,12 +200,7 @@ static void applyRotation(TransInfo *t, const int UNUSED(mval[2])) t->con.applyRot(t, NULL, NULL, axis_final, NULL); } else { - copy_v3_v3(axis_final, t->spacemtx[t->orient_axis]); - if (!(t->flag & T_INPUT_IS_VALUES_FINAL) && (dot_v3v3(axis_final, t->viewinv[2]) > 0.0f)) { - /* The input is obtained according to the position of the mouse. - * Flip to better match the movement. */ - final *= -1; - } + negate_v3_v3(axis_final, t->spacemtx[t->orient_axis]); } if (applyNumInput(&t->num, &final)) { |