mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 22:44:15 +02:00
clear _queryAACubeSet flag in locationChanged
This commit is contained in:
parent
16b26bbbfd
commit
7693058e39
1 changed files with 11 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue