make sure username is not empty before requesting faceMesh

This commit is contained in:
Stephen Birarda 2013-10-08 12:45:18 -07:00
parent d843285db7
commit f5912f07a8

View file

@ -819,7 +819,7 @@ void Menu::editPreferences() {
// there has been a username change - set the new UUID on the avatar instance
applicationInstance->getProfile()->setUsername(avatarUsernameEdit->text());
if (faceModelURL.toString() == faceURLString) {
if (faceModelURL.toString() == faceURLString && !avatarUsernameEdit->text().isEmpty()) {
// if there was no change to the face model URL then clear it and ask the data-server for what it is
applicationInstance->getAvatar()->getHead().getBlendFace().setModelURL(QUrl());
DataServerClient::getClientValueForKey(DataServerKey::FaceMeshURL);