Bugfix for avatar LOD

If an avatar was LOD'ed out, it would never become visible again, because the bounds of the skeleton model were never again.
This ensures that the model bound is updated, even when the avatar is LOD'ed away.
This commit is contained in:
Anthony J. Thibault 2016-05-26 14:35:17 -07:00
parent 4120ed9f0b
commit b4d14f06d8

View file

@ -303,6 +303,9 @@ void Avatar::simulate(float deltaTime) {
head->setScale(getUniformScale());
head->simulate(deltaTime, false, !_shouldAnimate);
}
} else {
// a non-full update is still required so that the position, rotation, scale and bounds of the skeletonModel are updated.
_skeletonModel->simulate(deltaTime, false);
}
// update animation for display name fade in/out