[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58558] trunk/blender/source/gameengine/ Physics/Bullet/CcdPhysicsController.cpp: BGE fix [#21488] Pumpkin in Gamekit Tutorial flips upside down

Daniel Stokes kupomail at gmail.com
Wed Jul 24 02:32:28 CEST 2013


Revision: 58558
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58558
Author:   kupoman
Date:     2013-07-24 00:32:26 +0000 (Wed, 24 Jul 2013)
Log Message:
-----------
BGE fix [#21488] Pumpkin in Gamekit Tutorial flips upside down

A reference was being grabbed when a copy was wanted.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp

Modified: trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
===================================================================
--- trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp	2013-07-23 23:48:54 UTC (rev 58557)
+++ trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp	2013-07-24 00:32:26 UTC (rev 58558)
@@ -1146,7 +1146,7 @@
 			{
 				//workaround for incompatibility between 'DYNAMIC' game object, and angular factor
 				//a DYNAMIC object has some inconsistency: it has no angular effect due to collisions, but still has torque
-				const btVector3& angFac = body->getAngularFactor();
+				const btVector3 angFac = body->getAngularFactor();
 				btVector3 tmpFac(1,1,1);
 				body->setAngularFactor(tmpFac);
 				body->applyTorque(torque);




More information about the Bf-blender-cvs mailing list