Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-02-04 16:43:57 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-02-04 16:43:57 +0300
commit760a16b88b51eee160a24b697472ec53bb452da4 (patch)
tree3444260cbcd93fd5c13901b121ee323ca6de9a3a /source/blender/editors/transform/transform_constraints.c
parentbec08621d60771c2464d9ee20d679c7d202bd9e1 (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_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 007ef7fd5c2..2ac7e41a7c9 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -560,15 +560,15 @@ static void constraints_rotation_imp(TransInfo *t,
switch (mode) {
case CON_AXIS0:
case (CON_AXIS1 | CON_AXIS2):
- negate_v3_v3(r_vec, axismtx[0]);
+ copy_v3_v3(r_vec, axismtx[0]);
break;
case CON_AXIS1:
case (CON_AXIS0 | CON_AXIS2):
- negate_v3_v3(r_vec, axismtx[1]);
+ copy_v3_v3(r_vec, axismtx[1]);
break;
case CON_AXIS2:
case (CON_AXIS0 | CON_AXIS1):
- negate_v3_v3(r_vec, axismtx[2]);
+ copy_v3_v3(r_vec, axismtx[2]);
break;
}
/* don't flip axis if asked to or if num input */