diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-27 23:10:18 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-27 23:22:47 +0300 |
commit | 92743cc895dd34bdaa165679bf9d06dfa3f8cb24 (patch) | |
tree | 1604e514b1976dba554503781cb6fc2387a5878f /source/blender/editors/transform/transform_constraints.c | |
parent | aad2f1510a80313a2272d131327442dc50152cbd (diff) |
Fix T85886: Rotate Tool and Adjust Last Operation - angles inverted
The constraint was not set when redoing.
This commit also removes `postInputRotation`. I really couldn't see a use for it.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r-- | source/blender/editors/transform/transform_constraints.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c index 1f589a830fc..93d5d41e121 100644 --- a/source/blender/editors/transform/transform_constraints.c +++ b/source/blender/editors/transform/transform_constraints.c @@ -572,7 +572,7 @@ static void constraints_rotation_impl(TransInfo *t, break; } /* don't flip axis if asked to or if num input */ - if (r_angle && (mode & CON_NOFLIP) == 0 && hasNumInput(&t->num) == 0) { + if (r_angle && !((mode & CON_NOFLIP) || hasNumInput(&t->num) || (t->flag & T_INPUT_IS_VALUES_FINAL))) { float view_vector[3]; view_vector_calc(t, t->center_global, view_vector); if (dot_v3v3(r_vec, view_vector) > 0.0f) { |