diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2005-08-22 22:31:19 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2005-08-22 22:31:19 +0400 |
commit | 43b59afebb7b4887028786174978ab551e8cb9d2 (patch) | |
tree | 44df649fa62f5a54538575d9780b061b92dfc9d3 /source/gameengine/Ketsji/KX_SumoPhysicsController.cpp | |
parent | 3b8e94ac6b10900825cf0c93aaa2e67d3f4d59a3 (diff) |
more preparation for physics recording to ipo keyframes
Diffstat (limited to 'source/gameengine/Ketsji/KX_SumoPhysicsController.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_SumoPhysicsController.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_SumoPhysicsController.cpp b/source/gameengine/Ketsji/KX_SumoPhysicsController.cpp index a062a348b02..11a09a12e1e 100644 --- a/source/gameengine/Ketsji/KX_SumoPhysicsController.cpp +++ b/source/gameengine/Ketsji/KX_SumoPhysicsController.cpp @@ -157,9 +157,11 @@ void KX_SumoPhysicsController::SetObject (SG_IObject* object) SG_Controller::SetObject(object); // cheating here... - KX_GameObject* gameobj = (KX_GameObject*) object->GetSGClientObject(); - gameobj->SetPhysicsController(this); - GetSumoObject()->setClientObject(gameobj->getClientInfo()); +//should not be necessary, is it for duplicates ? + +KX_GameObject* gameobj = (KX_GameObject*) object->GetSGClientObject(); +gameobj->SetPhysicsController(this,gameobj->IsDynamic()); +GetSumoObject()->setClientObject(gameobj->getClientInfo()); } |