History

leverage JSON filter changes to OctreeQuery in EntityServer

Stephen Birarda committed 9 years ago

Commit 35563791 parent f9f958a14 files · +262 −226Browse files

Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 14 files). Show all

Unified · Split

assignment-client/src/scripts/EntityScriptServer.cpp+2−1
@@ -91,7 +91,8 @@ void EntityScriptServer::run() { · 90 unmodified lines
9191
9292 // setup the JSON filter that asks for entities with a non-default serverScripts property
9393 QJsonObject queryJSONParameters;
94− queryJSONParameters["serverScripts"] = OctreeQuery::NON_DEFAULT_FILTER;
94+ static const QString SERVER_SCRIPTS_PROPERTY = "serverScripts";
95+ queryJSONParameters[SERVER_SCRIPTS_PROPERTY] = EntityQueryFilterSymbol::NonDefault;
9596
9697 // setup the JSON parameters so that OctreeQuery does not use a frustum and uses our JSON filter
9798 _entityViewer.getOctreeQuery().setUsesFrustum(false);