mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Remove AvatarHashMap from EntityServer
This commit is contained in:
parent
2ca50153b3
commit
8a691e8340
2 changed files with 7 additions and 7 deletions
|
@ -33,11 +33,13 @@ SpatiallyNestableWeakPointer AssignmentParentFinder::find(QUuid parentID, bool&
|
||||||
}
|
}
|
||||||
|
|
||||||
// search avatars
|
// search avatars
|
||||||
auto avatarHashMap = DependencyManager::get<AvatarHashMap>();
|
if (DependencyManager::isSet<AvatarHashMap>()) {
|
||||||
parent = avatarHashMap->getAvatarBySessionID(parentID);
|
auto avatarHashMap = DependencyManager::get<AvatarHashMap>();
|
||||||
if (!parent.expired()) {
|
parent = avatarHashMap->getAvatarBySessionID(parentID);
|
||||||
success = true;
|
if (!parent.expired()) {
|
||||||
return parent;
|
success = true;
|
||||||
|
return parent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
success = false;
|
success = false;
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#include "EntityServerConsts.h"
|
#include "EntityServerConsts.h"
|
||||||
#include "EntityNodeData.h"
|
#include "EntityNodeData.h"
|
||||||
#include "AssignmentParentFinder.h"
|
#include "AssignmentParentFinder.h"
|
||||||
#include <AvatarHashMap.h>
|
|
||||||
|
|
||||||
const char* MODEL_SERVER_NAME = "Entity";
|
const char* MODEL_SERVER_NAME = "Entity";
|
||||||
const char* MODEL_SERVER_LOGGING_TARGET_NAME = "entity-server";
|
const char* MODEL_SERVER_LOGGING_TARGET_NAME = "entity-server";
|
||||||
|
@ -63,7 +62,6 @@ OctreePointer EntityServer::createTree() {
|
||||||
_entitySimulation = simpleSimulation;
|
_entitySimulation = simpleSimulation;
|
||||||
}
|
}
|
||||||
|
|
||||||
DependencyManager::set<AvatarHashMap>();
|
|
||||||
DependencyManager::registerInheritance<SpatialParentFinder, AssignmentParentFinder>();
|
DependencyManager::registerInheritance<SpatialParentFinder, AssignmentParentFinder>();
|
||||||
DependencyManager::set<AssignmentParentFinder>(tree);
|
DependencyManager::set<AssignmentParentFinder>(tree);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue