mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 12:18:36 +02:00
remove redundant EntityMotionState::updateSendVelocities() call
This commit is contained in:
parent
9073e1ade3
commit
9390687e2d
1 changed files with 0 additions and 1 deletions
|
@ -138,7 +138,6 @@ void PhysicalEntitySimulation::changeEntityInternal(EntityItemPointer entity) {
|
||||||
btRigidBody* body = motionState->getRigidBody();
|
btRigidBody* body = motionState->getRigidBody();
|
||||||
if (body) {
|
if (body) {
|
||||||
body->forceActivationState(ISLAND_SLEEPING);
|
body->forceActivationState(ISLAND_SLEEPING);
|
||||||
motionState->updateSendVelocities(); // has side-effect of zeroing entity velocities for inactive body
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// send packet to remove ownership
|
// send packet to remove ownership
|
||||||
|
|
Loading…
Reference in a new issue