mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 00:02:21 +02:00
don't queue AvatarEntity messages when not in domain
This commit is contained in:
parent
9d11e44b4b
commit
206792f851
1 changed files with 5 additions and 0 deletions
|
@ -3454,6 +3454,11 @@ void MyAvatar::setSessionUUID(const QUuid& sessionUUID) {
|
|||
QUuid oldSessionID = getSessionUUID();
|
||||
Avatar::setSessionUUID(sessionUUID);
|
||||
QUuid newSessionID = getSessionUUID();
|
||||
if (DependencyManager::get<NodeList>()->getSessionUUID().isNull()) {
|
||||
// we don't actually have a connection to a domain right now
|
||||
// so there is no need to queue AvatarEntity messages --> bail early
|
||||
return;
|
||||
}
|
||||
if (newSessionID != oldSessionID) {
|
||||
auto treeRenderer = DependencyManager::get<EntityTreeRenderer>();
|
||||
EntityTreePointer entityTree = treeRenderer ? treeRenderer->getTree() : nullptr;
|
||||
|
|
Loading…
Reference in a new issue