mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:10:49 +02:00
Add comments to DebugDraw instanciation
This commit is contained in:
parent
7160fca4f7
commit
b3d73fd0df
2 changed files with 3 additions and 1 deletions
|
@ -81,7 +81,8 @@ Agent::Agent(ReceivedMessage& message) :
|
||||||
|
|
||||||
DependencyManager::set<RecordingScriptingInterface>();
|
DependencyManager::set<RecordingScriptingInterface>();
|
||||||
DependencyManager::set<UsersScriptingInterface>();
|
DependencyManager::set<UsersScriptingInterface>();
|
||||||
|
|
||||||
|
// Needed to ensure the creation of the DebugDraw instance on the main thread
|
||||||
DebugDraw::getInstance();
|
DebugDraw::getInstance();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ EntityScriptServer::EntityScriptServer(ReceivedMessage& message) : ThreadedAssig
|
||||||
DependencyManager::set<ScriptCache>();
|
DependencyManager::set<ScriptCache>();
|
||||||
DependencyManager::set<ScriptEngines>(ScriptEngine::ENTITY_SERVER_SCRIPT);
|
DependencyManager::set<ScriptEngines>(ScriptEngine::ENTITY_SERVER_SCRIPT);
|
||||||
|
|
||||||
|
// Needed to ensure the creation of the DebugDraw instance on the main thread
|
||||||
DebugDraw::getInstance();
|
DebugDraw::getInstance();
|
||||||
|
|
||||||
auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver();
|
auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver();
|
||||||
|
|
Loading…
Reference in a new issue