mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 16:13:28 +02:00
make sure username is not empty before requesting faceMesh
This commit is contained in:
parent
d843285db7
commit
f5912f07a8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue