Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 4 files). Show all
Unified · Split
| @@ -88,6 +88,14 @@ void EntityScriptServer::run() { · 87 unmodified lines | |||
| 88 | _entityViewer.setJurisdictionListener(entityScriptingInterface->getJurisdictionListener()); | 88 | _entityViewer.setJurisdictionListener(entityScriptingInterface->getJurisdictionListener()); |
| 89 | 89 | ||
| 90 | _entityViewer.init(); | 90 | _entityViewer.init(); |
| 91 | |||
| 92 | // setup the JSON filter that asks for entities with a non-default serverScripts property | ||
| 93 | QJsonObject queryJSONParameters; | ||
| 94 | queryJSONParameters["serverScripts"] = OctreeQuery::NON_DEFAULT_FILTER; | ||
| 95 | |||
| 96 | // setup the JSON parameters so that OctreeQuery does not use a frustum and uses our JSON filter | ||
| 97 | _entityViewer.setQueryUsesFrustum(false); | ||
| 98 | _entityViewer.setQueryJSONParameters(queryJSONParameters); | ||
| 91 | 99 | ||
| 92 | entityScriptingInterface->setEntityTree(_entityViewer.getTree()); | 100 | entityScriptingInterface->setEntityTree(_entityViewer.getTree()); |
| 93 | 101 | ||