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_mode_rotate.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_mode_rotate.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_rotate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_mode_rotate.c b/source/blender/editors/transform/transform_mode_rotate.c index fa02e5382a7..8d8594d5775 100644 --- a/source/blender/editors/transform/transform_mode_rotate.c +++ b/source/blender/editors/transform/transform_mode_rotate.c @@ -197,7 +197,7 @@ static void applyRotation(TransInfo *t, const int UNUSED(mval[2])) float final = t->values[0]; if ((t->con.mode & CON_APPLY) && t->con.applyRot) { - t->con.applyRot(t, NULL, NULL, axis_final, NULL); + t->con.applyRot(t, NULL, NULL, axis_final, &final); } else { negate_v3_v3(axis_final, t->spacemtx[t->orient_axis]); @@ -234,7 +234,6 @@ void initRotation(TransInfo *t) t->tsnap.applySnap = ApplySnapRotation; t->tsnap.distance = RotationBetween; - setInputPostFct(&t->mouse, postInputRotation); initMouseInputMode(t, &t->mouse, INPUT_ANGLE); t->idx_max = 0; |