History

Wired up the send of the display data to the servers Added the renderDisplayName in Avatar

Jose Carlos committed 12 years ago

Commit 319d1f61 parent 665971c6 files · +135 −100Browse files

Showing the changes to interface/src/Menu.cpp (1 of 6 files). Show all

Unified · Split

interface/src/Menu.cpp+7−0
@@ -858,7 +858,14 @@ void Menu::editPreferences() { · 857 unmodified lines
858858 applicationInstance->getAvatar()->setSkeletonModelURL(skeletonModelURL);
859859 shouldDispatchIdentityPacket = true;
860860 }
861+
862+ QString displayNameStr(displayNameEdit->text());
861863
864+ if (displayNameStr != displayNameString) {
865+ applicationInstance->getAvatar()->setDisplayName(displayNameStr);
866+ shouldDispatchIdentityPacket = true;
867+ }
868+
862869 if (shouldDispatchIdentityPacket) {
863870 applicationInstance->getAvatar()->sendIdentityPacket();
864871 }