Revision: 15714
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15714
Author: campbellbarton
Date: 2008-07-23 17:45:23 +0200 (Wed, 23 Jul 2008)
Log Message:
-----------
Added NodeUpdateGS so GameObject Python api alignAxisToVect function,
Otherwise the rotation isn't applied.
Modified Paths:
--------------
trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
Modified: trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp 2008-07-23
12:59:05 UTC (rev 15713)
+++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp 2008-07-23
15:45:23 UTC (rev 15714)
@@ -1470,6 +1470,7 @@
if (PyVecTo(pyvect, vect))
{
AlignAxisToVect(vect,axis,fac);
+ NodeUpdateGS(0.f,true);
Py_RETURN_NONE;
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs