From 2dd2a49141402ded56df07f956adb37a872b3c2d Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 17 Dec 2015 15:02:07 -0800 Subject: [PATCH] a non-set queryAACube is one with no volume --- libraries/shared/src/SpatiallyNestable.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/libraries/shared/src/SpatiallyNestable.cpp b/libraries/shared/src/SpatiallyNestable.cpp index 43632825be..45cd7fec02 100644 --- a/libraries/shared/src/SpatiallyNestable.cpp +++ b/libraries/shared/src/SpatiallyNestable.cpp @@ -531,17 +531,6 @@ void SpatiallyNestable::forEachDescendant(std::functionlocationChanged(); }); @@ -549,7 +538,9 @@ void SpatiallyNestable::locationChanged() { void SpatiallyNestable::setQueryAACube(const AACube& queryAACube) { _queryAACube = queryAACube; - _queryAACubeSet = true; + if (queryAACube.getScale() > 0.0f) { + _queryAACubeSet = true; + } } AACube SpatiallyNestable::getMaximumAACube(bool& success) const {