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:
authorMartin Poirier <theeth@yahoo.com>2008-05-13 14:17:46 +0400
committerMartin Poirier <theeth@yahoo.com>2008-05-13 14:17:46 +0400
commitf4a20f4cc1a70cb9b208b2b44c3d28f39ce8ef11 (patch)
tree90c377e09e59dcc1fba5c793f3bb6a931ebce766
parent33120a18250ab088be663305ff8542a729f00cb4 (diff)
[#8146] Objects rotate in wrong direction when using numeric input (R x <num>)
Don't flip axis to face camera on num input.
-rw-r--r--source/blender/src/transform_constraints.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/transform_constraints.c b/source/blender/src/transform_constraints.c
index 1b85962a768..769ebd2ea97 100644
--- a/source/blender/src/transform_constraints.c
+++ b/source/blender/src/transform_constraints.c
@@ -412,7 +412,8 @@ static void applyAxisConstraintRot(TransInfo *t, TransData *td, float vec[3])
VECCOPY(vec, t->con.mtx[2]);
break;
}
- if (!(mode & CON_NOFLIP)) {
+ /* don't flip axis if asked to or if num input */
+ if (!(mode & CON_NOFLIP) && hasNumInput(&t->num) == 0) {
if (Inpf(vec, t->viewinv[2]) > 0.0f) {
VecMulf(vec, -1.0f);
}