[#8146] Objects rotate in wrong direction when using numeric input (R x <num>)
[blender.git] / 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);
                        }