Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -158,8 +158,6 @@ void EntityScriptServer::resetEntitiesScriptEngine() { · 157 unmodified lines | ||
| 158 | 158 | auto engineName = QString("Entities %1").arg(++_entitiesScriptEngineCount); |
| 159 | 159 | auto newEngine = QSharedPointer<ScriptEngine>(new ScriptEngine(NO_SCRIPT, engineName)); |
| 160 | 160 | |
| 161 | − newEngine->registerGlobalObject("EntityViewer", &_entityViewer); | |
| 162 | − | |
| 163 | 161 | auto webSocketServerConstructorValue = newEngine->newFunction(WebSocketServerClass::constructor); |
| 164 | 162 | newEngine->globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue); |
| 165 | 163 | |