Don't always activate a Bullet rigid body
authorErwin Coumans <blender@erwincoumans.com>
Mon, 27 Apr 2009 05:06:24 +0000 (05:06 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Mon, 27 Apr 2009 05:06:24 +0000 (05:06 +0000)
If you want to keep a rigid body awake, please use the GUI 'No Sleeping' option for Rigid bodies.

source/gameengine/Ketsji/KX_BulletPhysicsController.cpp

index 831f9241fec998378cffde2dad778a16947de661..bc5a64d36a8a83fa389d82747045774325783a42 100644 (file)
@@ -438,8 +438,6 @@ SG_Controller*      KX_BulletPhysicsController::GetReplica(class SG_Node* destnode)
 
 void   KX_BulletPhysicsController::SetSumoTransform(bool nondynaonly)
 {
-       if (GetRigidBody())
-               GetRigidBody()->activate(true);
 
        if (!m_bDyna)
        {