Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3707,6 +3707,11 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 3706 unmodified lines | ||
| 3707 | 3707 | } else if (msgBox.clickedButton() == bodyButton) { |
| 3708 | 3708 | qDebug() << "Chose to use for body: " << url; |
| 3709 | 3709 | _myAvatar->setSkeletonModelURL(url); |
| 3710 | + // if the head is empty, reset it to the default head. | |
| 3711 | + if (_myAvatar->getFaceModelURLString().isEmpty()) { | |
| 3712 | + _myAvatar->setFaceModelURL(DEFAULT_HEAD_MODEL_URL); | |
| 3713 | + UserActivityLogger::getInstance().changedModel("head", DEFAULT_HEAD_MODEL_URL.toString()); | |
| 3714 | + } | |
| 3710 | 3715 | UserActivityLogger::getInstance().changedModel("skeleton", url); |
| 3711 | 3716 | _myAvatar->sendIdentityPacket(); |
| 3712 | 3717 | } else if (msgBox.clickedButton() == bodyAndHeadButton) { |