[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15714] trunk/blender/source/gameengine/ Ketsji/KX_GameObject.cpp: Added NodeUpdateGS so GameObject Python api alignAxisToVect function,

Campbell Barton ideasman42 at gmail.com
Wed Jul 23 17:45:24 CEST 2008


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;
 		}
 	}





More information about the Bf-blender-cvs mailing list