[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14663] trunk/blender/source/gameengine/ Ketsji/KX_GameObject.cpp: BGE bug fix: set parent actuator change the orientation of object

Benoit Bolsee benoit.bolsee at online.be
Fri May 2 19:22:30 CEST 2008


Revision: 14663
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14663
Author:   ben2610
Date:     2008-05-02 19:22:28 +0200 (Fri, 02 May 2008)

Log Message:
-----------
BGE bug fix: set parent actuator change the orientation of object

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-05-02 15:47:08 UTC (rev 14662)
+++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp	2008-05-02 17:22:28 UTC (rev 14663)
@@ -229,7 +229,7 @@
 
 		NodeSetLocalScale(scale1);
 		NodeSetLocalPosition(MT_Point3(newpos[0],newpos[1],newpos[2]));
-		NodeSetLocalOrientation(NodeGetWorldOrientation()*invori);
+		NodeSetLocalOrientation(invori*NodeGetWorldOrientation());
 		NodeUpdateGS(0.f,true);
 		// object will now be a child, it must be removed from the parent list
 		CListValue* rootlist = scene->GetRootParentList();





More information about the Bf-blender-cvs mailing list