diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-05-13 14:17:46 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-05-13 14:17:46 +0400 |
commit | f4a20f4cc1a70cb9b208b2b44c3d28f39ce8ef11 (patch) | |
tree | 90c377e09e59dcc1fba5c793f3bb6a931ebce766 /source/blender/src/transform_constraints.c | |
parent | 33120a18250ab088be663305ff8542a729f00cb4 (diff) |
[#8146] Objects rotate in wrong direction when using numeric input (R x <num>)
Don't flip axis to face camera on num input.
Diffstat (limited to 'source/blender/src/transform_constraints.c')
-rw-r--r-- | source/blender/src/transform_constraints.c | 3 |
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); } |