[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14826] trunk/blender/source/blender/src/ transform_constraints.c: [#8146] Objects rotate in wrong direction when using numeric input (R x <num>)
Martin Poirier
theeth at yahoo.com
Tue May 13 12:17:46 CEST 2008
Revision: 14826
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14826
Author: theeth
Date: 2008-05-13 12:17:46 +0200 (Tue, 13 May 2008)
Log Message:
-----------
[#8146] Objects rotate in wrong direction when using numeric input (R x <num>)
Don't flip axis to face camera on num input.
Modified Paths:
--------------
trunk/blender/source/blender/src/transform_constraints.c
Modified: trunk/blender/source/blender/src/transform_constraints.c
===================================================================
--- trunk/blender/source/blender/src/transform_constraints.c 2008-05-13 10:04:04 UTC (rev 14825)
+++ trunk/blender/source/blender/src/transform_constraints.c 2008-05-13 10:17:46 UTC (rev 14826)
@@ -412,7 +412,8 @@
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);
}
More information about the Bf-blender-cvs
mailing list