mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:29:50 +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) {
|
if (node->getType() == NodeType::AvatarMixer) {
|
||||||
// new avatar mixer, send off our identity packet on next update loop
|
// 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()->markIdentityDataChanged();
|
||||||
getMyAvatar()->resetLastSent();
|
getMyAvatar()->resetLastSent();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue