[Bf-blender-cvs] [8e1ba0b] master: BGE Cleanup: remove dead code at SetCenterOfMassTransform
Jorge Bernal
noreply at git.blender.org
Sat Jun 20 01:00:58 CEST 2015
Commit: 8e1ba0b805db988bff8178d707d7435cfc72a1f8
Author: Jorge Bernal
Date: Sat Jun 20 01:00:22 2015 +0200
Branches: master
https://developer.blender.org/rB8e1ba0b805db988bff8178d707d7435cfc72a1f8
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
===================================================================
M source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
===================================================================
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
index 8ea2b4f..4fd1f10 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);
}
}
More information about the Bf-blender-cvs
mailing list