diff options
author | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-06-20 02:00:22 +0300 |
---|---|---|
committer | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-06-20 02:00:22 +0300 |
commit | 8e1ba0b805db988bff8178d707d7435cfc72a1f8 (patch) | |
tree | 2b452f8d3505d2f49311a291425578f99c65790c /source/gameengine | |
parent | 1d6c025c42a0f2b003a374a18f1661d65dcc932b (diff) |
BGE Cleanup: remove dead code at SetCenterOfMassTransform
Basically, at this line body is always NULL and the code is never
executed
Reviewers: moguri, hg1, panzergame, agoose77
Reviewed By: hg1, panzergame, agoose77
Subscribers: blueprintrandom
Projects: #game_engine
Differential Revision: https://developer.blender.org/D1331
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Physics/Bullet/CcdPhysicsController.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp index 8ea2b4f299d..4fd1f10fad6 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp @@ -893,12 +893,6 @@ void CcdPhysicsController::SetCenterOfMassTransform(btTransform& xform) { m_object->setInterpolationWorldTransform(xform); } - if (body) - { - body->setInterpolationLinearVelocity(body->getLinearVelocity()); - body->setInterpolationAngularVelocity(body->getAngularVelocity()); - body->updateInertiaTensor(); - } m_object->setWorldTransform(xform); } } |