fix updateQueryAACube return-value

This commit is contained in:
Seth Alves 2017-10-13 13:11:18 -07:00
parent f2cb5d4aff
commit 633f63df54

View file

@ -970,7 +970,10 @@ bool SpatiallyNestable::updateQueryAACube() {
bool success;
AACube maxAACube = getMaximumAACube(success);
if (success) {
if (!success) {
return false;
}
if (shouldPuffQueryAACube()) {
// make an expanded AACube centered on the object
float scale = PARENTED_EXPANSION_FACTOR * maxAACube.getScale();
@ -994,7 +997,6 @@ bool SpatiallyNestable::updateQueryAACube() {
});
_queryAACubeSet = true;
}
return true;
}