Revision: 20869 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&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. http://blenderartists.org/forum/showthread.php?t=158617 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 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. m_object->getCollisionShape()->setLocalScaling(m_cci.m_scaling); //printf("no inertia recalc for fixed objects with mass=0\n"); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs