clear _queryAACubeSet flag in locationChanged

This commit is contained in:
Seth Alves 2015-12-17 10:49:24 -08:00
parent 16b26bbbfd
commit 7693058e39

View file

@ -531,6 +531,17 @@ void SpatiallyNestable::forEachDescendant(std::function<void(SpatiallyNestablePo
}
void SpatiallyNestable::locationChanged() {
bool success;
glm::vec3 currentPosition = getPosition(success);
if (success) {
AACube currentQueryAACube = getQueryAACube(success);
if (success) {
if (! currentQueryAACube.contains(currentPosition)) {
_queryAACubeSet = false;
}
}
}
forEachChild([&](SpatiallyNestablePointer object) {
object->locationChanged();
});