History

More progress on reading skeletons.

Andrzej Kapolka committed 13 years ago

Commit c8b2ed01 parent 9ba3c379 files · +124 −66Browse files

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

Unified · Split

interface/src/Menu.cpp+11−0
@@ -862,6 +862,17 @@ void Menu::editPreferences() { · 861 unmodified lines
862 faceModelURL.toString().toLocal8Bit().constData());862 faceModelURL.toString().toLocal8Bit().constData());
863 }863 }
864 864
865 QUrl skeletonModelURL(skeletonURLEdit->text());
866
867 if (skeletonModelURL.toString() != skeletonURLString) {
868 // change the skeletonModelURL in the profile, it will also update this user's Body
869 applicationInstance->getProfile()->setSkeletonModelURL(skeletonModelURL);
870
871 // send the new skeleton model URL to the data-server (if we have a client UUID)
872 DataServerClient::putValueForKey(DataServerKey::SkeletonURL,
873 skeletonModelURL.toString().toLocal8Bit().constData());
874 }
875
865 QUrl avatarVoxelURL(avatarURL->text());876 QUrl avatarVoxelURL(avatarURL->text());
866 applicationInstance->getAvatar()->getVoxels()->setVoxelURL(avatarVoxelURL);877 applicationInstance->getAvatar()->getVoxels()->setVoxelURL(avatarVoxelURL);
867 878