[#8146] Objects rotate in wrong direction when using numeric input (R x <num>)
authorMartin Poirier <theeth@yahoo.com>
Tue, 13 May 2008 10:17:46 +0000 (10:17 +0000)
committerMartin Poirier <theeth@yahoo.com>
Tue, 13 May 2008 10:17:46 +0000 (10:17 +0000)
Don't flip axis to face camera on num input.

source/blender/src/transform_constraints.c

index 1b85962a768b683555ed46879e3732822d97bfda..769ebd2ea97ab8ed1a982ea18d164de556489a12 100644 (file)
@@ -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);
                        }