mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
Fix look-at target position getting stuck when avatar moves out of range
This commit is contained in:
parent
738c5658fa
commit
e37fd956ed
1 changed files with 2 additions and 0 deletions
|
@ -859,6 +859,8 @@ void MyAvatar::updateLookAtTargetAvatar() {
|
||||||
} else {
|
} else {
|
||||||
avatar->getHead()->clearCorrectedLookAtPosition();
|
avatar->getHead()->clearCorrectedLookAtPosition();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
avatar->getHead()->clearCorrectedLookAtPosition();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto avatarPointer = _lookAtTargetAvatar.lock();
|
auto avatarPointer = _lookAtTargetAvatar.lock();
|
||||||
|
|
Loading…
Reference in a new issue