diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-04 16:43:57 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-02-04 16:43:57 +0300 |
commit | 760a16b88b51eee160a24b697472ec53bb452da4 (patch) | |
tree | 3444260cbcd93fd5c13901b121ee323ca6de9a3a /source/blender/editors/transform/transform_gizmo_3d.c | |
parent | bec08621d60771c2464d9ee20d679c7d202bd9e1 (diff) |
Fix for 3D view transform: flipped rotation direction for numeric input
The rotation direction was flipped recently.
This meant that rotation on a single axis gave negative results compared
with previous Blender releases.
This partially reverts a9b53daf23ba8b6cb4c930e06154ffd35522b00d.
Differential Revision: https://developer.blender.org/D10299
Diffstat (limited to 'source/blender/editors/transform/transform_gizmo_3d.c')
-rw-r--r-- | source/blender/editors/transform/transform_gizmo_3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c index be29c1cda02..9c08159cf07 100644 --- a/source/blender/editors/transform/transform_gizmo_3d.c +++ b/source/blender/editors/transform/transform_gizmo_3d.c @@ -1322,16 +1322,16 @@ void drawDial3d(const TransInfo *t) if (tc->mode & CON_APPLY) { if (tc->mode & CON_AXIS0) { axis_idx = MAN_AXIS_ROT_X; - copy_v3_v3(mat_basis[2], t->spacemtx[0]); + negate_v3_v3(mat_basis[2], t->spacemtx[0]); } else if (tc->mode & CON_AXIS1) { axis_idx = MAN_AXIS_ROT_Y; - copy_v3_v3(mat_basis[2], t->spacemtx[1]); + negate_v3_v3(mat_basis[2], t->spacemtx[1]); } else { BLI_assert((tc->mode & CON_AXIS2) != 0); axis_idx = MAN_AXIS_ROT_Z; - copy_v3_v3(mat_basis[2], t->spacemtx[2]); + negate_v3_v3(mat_basis[2], t->spacemtx[2]); } } else { |