From 543d0ce77e36a86183a6786fc725d382aac1c70f Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 24 Jan 2017 16:36:44 -0800 Subject: [PATCH] add a comment about usesFrustum check in EntityTreeElement --- libraries/entities/src/EntityTreeElement.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/entities/src/EntityTreeElement.cpp b/libraries/entities/src/EntityTreeElement.cpp index 51d6d2b270..511aec43c0 100644 --- a/libraries/entities/src/EntityTreeElement.cpp +++ b/libraries/entities/src/EntityTreeElement.cpp @@ -332,6 +332,8 @@ OctreeElement::AppendState EntityTreeElement::appendElementData(OctreePacketData entityTreeElementExtraEncodeData->entities.contains(entity->getEntityItemID()); } + // we only check the bounds against our frustum and LOD if the query has asked us to check against the frustum + // which can sometimes not be the case when JSON filters are sent if (params.usesFrustum && (includeThisEntity || params.recurseEverything)) { // we want to use the maximum possible box for this, so that we don't have to worry about the nuance of