mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:25:31 +02:00
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:
parent
4120ed9f0b
commit
b4d14f06d8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue