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
37073707 } else if (msgBox.clickedButton() == bodyButton) {
37083708 qDebug() << "Chose to use for body: " << url;
37093709 _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+ }
37103715 UserActivityLogger::getInstance().changedModel("skeleton", url);
37113716 _myAvatar->sendIdentityPacket();
37123717 } else if (msgBox.clickedButton() == bodyAndHeadButton) {