History

if installing a body, and you have no head, make your head the default head

ZappoMan committed 11 years ago

Commit 3bda65f1 parent 80df8ca1 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
@@ -3707,6 +3707,11 @@ bool Application::askToSetAvatarUrl(const QString& url) { · 3706 unmodified lines
3707 } else if (msgBox.clickedButton() == bodyButton) {3707 } else if (msgBox.clickedButton() == bodyButton) {
3708 qDebug() << "Chose to use for body: " << url;3708 qDebug() << "Chose to use for body: " << url;
3709 _myAvatar->setSkeletonModelURL(url);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 UserActivityLogger::getInstance().changedModel("skeleton", url);3715 UserActivityLogger::getInstance().changedModel("skeleton", url);
3711 _myAvatar->sendIdentityPacket();3716 _myAvatar->sendIdentityPacket();
3712 } else if (msgBox.clickedButton() == bodyAndHeadButton) {3717 } else if (msgBox.clickedButton() == bodyAndHeadButton) {