History

reset avatar on domain change if the last domain imposed something on us

Howard Stearns committed 9 years ago

Commit 87f3ce71 parent 6271b8e1 file · +5 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -5292,6 +5292,11 @@ void Application::nodeActivated(SharedNodePointer node) { · 5291 unmodified lines
52925292
52935293 if (node->getType() == NodeType::AvatarMixer) {
52945294 // new avatar mixer, send off our identity packet on next update loop
5295+ // Reset skeletonModelUrl if the last server modified our choice.
5296+ static const QUrl empty{};
5297+ if (getMyAvatar()->getFullAvatarURLFromPreferences() != getMyAvatar()->cannonicalSkeletonModelURL(empty)) {
5298+ getMyAvatar()->resetFullAvatarURL();
5299+ }
52955300 getMyAvatar()->markIdentityDataChanged();
52965301 getMyAvatar()->resetLastSent();
52975302 }