[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20869] trunk/blender/source/gameengine/ Physics/Bullet/CcdPhysicsController.cpp: changing the scale of a sleeping object wasnt working with bullet.

Campbell Barton ideasman42 at gmail.com
Sun Jun 14 08:03:13 CEST 2009

Revision: 20869
Author:   campbellbarton
Date:     2009-06-14 08:03:12 +0200 (Sun, 14 Jun 2009)

Log Message:
changing the scale of a sleeping object wasnt working with bullet.

Example is a cube that lands on a plane, sleeps after some time, a script changes the scale.
It would still use the scale when the object first went to sleep.

reported on blenderartist.

Modified Paths:

Modified: trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
--- trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp	2009-06-13 22:31:14 UTC (rev 20868)
+++ trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp	2009-06-14 06:03:12 UTC (rev 20869)
@@ -979,6 +979,7 @@
 		if (m_object && m_object->getCollisionShape())
+			m_object->activate(true); // without this, sleeping objects scale wont be applied in bullet if python changes the scale - Campbell.
 			//printf("no inertia recalc for fixed objects with mass=0\n");

More information about the Bf-blender-cvs mailing list