Showing the changes to interface/src/Menu.cpp (1 of 9 files). Show all
Unified · Split
| @@ -862,6 +862,17 @@ void Menu::editPreferences() { · 861 unmodified lines | ||
| 862 | 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 | 876 | QUrl avatarVoxelURL(avatarURL->text()); |
| 866 | 877 | applicationInstance->getAvatar()->getVoxels()->setVoxelURL(avatarVoxelURL); |
| 867 | 878 | |