forked from bartvdbraak/blender
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
This commit is contained in:
parent
1d6c025c42
commit
8e1ba0b805
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user