mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
save avatar-entities which are created while using a serverless domain
This commit is contained in:
parent
3be1988260
commit
77febe0aab
2 changed files with 8 additions and 4 deletions
|
@ -3061,7 +3061,9 @@ void Application::loadServerlessDomain(QUrl domainURL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
getMyAvatar()->setSessionUUID(QUuid::createUuid());
|
QUuid serverlessSessionID = QUuid::createUuid();
|
||||||
|
getMyAvatar()->setSessionUUID(serverlessSessionID);
|
||||||
|
DependencyManager::get<NodeList>()->setSessionUUID(serverlessSessionID);
|
||||||
|
|
||||||
auto addressManager = DependencyManager::get<AddressManager>();
|
auto addressManager = DependencyManager::get<AddressManager>();
|
||||||
addressManager->handleLookupString(DOMAIN_SPAWNING_POINT);
|
addressManager->handleLookupString(DOMAIN_SPAWNING_POINT);
|
||||||
|
|
|
@ -219,8 +219,10 @@ void Avatar::updateAvatarEntities() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getID() == QUuid() || getID() == AVATAR_SELF_ID) {
|
if (getID() == QUuid() ||
|
||||||
return; // wait until MyAvatar gets an ID before doing this.
|
getID() == AVATAR_SELF_ID ||
|
||||||
|
DependencyManager::get<NodeList>()->getSessionUUID() == QUuid()) {
|
||||||
|
return; // wait until MyAvatar and this Node gets an ID before doing this.
|
||||||
}
|
}
|
||||||
|
|
||||||
auto treeRenderer = DependencyManager::get<EntityTreeRenderer>();
|
auto treeRenderer = DependencyManager::get<EntityTreeRenderer>();
|
||||||
|
@ -1789,4 +1791,4 @@ void Avatar::processMaterials() {
|
||||||
material.pop();
|
material.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue