mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
reset avatar on domain change if the last domain imposed something on us
This commit is contained in:
parent
6271b8ee7c
commit
87f3ce7699
1 changed files with 5 additions and 0 deletions
|
@ -5292,6 +5292,11 @@ void Application::nodeActivated(SharedNodePointer node) {
|
|||
|
||||
if (node->getType() == NodeType::AvatarMixer) {
|
||||
// new avatar mixer, send off our identity packet on next update loop
|
||||
// Reset skeletonModelUrl if the last server modified our choice.
|
||||
static const QUrl empty{};
|
||||
if (getMyAvatar()->getFullAvatarURLFromPreferences() != getMyAvatar()->cannonicalSkeletonModelURL(empty)) {
|
||||
getMyAvatar()->resetFullAvatarURL();
|
||||
}
|
||||
getMyAvatar()->markIdentityDataChanged();
|
||||
getMyAvatar()->resetLastSent();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue