From 8e1ba0b805db988bff8178d707d7435cfc72a1f8 Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Sat, 20 Jun 2015 01:00:22 +0200 Subject: 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 --- source/gameengine/Physics/Bullet/CcdPhysicsController.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source') 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); } } -- cgit v1.2.3