Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJorge Bernal <jbernalmartinez@gmail.com>2015-06-20 02:00:22 +0300
committerJorge Bernal <jbernalmartinez@gmail.com>2015-06-20 02:00:22 +0300
commit8e1ba0b805db988bff8178d707d7435cfc72a1f8 (patch)
tree2b452f8d3505d2f49311a291425578f99c65790c /source
parent1d6c025c42a0f2b003a374a18f1661d65dcc932b (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')
-rw-r--r--source/gameengine/Physics/Bullet/CcdPhysicsController.cpp6
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);
}
}