mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
Merge branch 'near-grab-via-parenting' of github.com:sethalves/hifi into near-grab-via-parenting
This commit is contained in:
commit
d7e08876da
1 changed files with 12 additions and 0 deletions
|
@ -556,6 +556,18 @@ bool SpatiallyNestable::queryAABoxNeedsUpdate() const {
|
|||
qDebug() << "can't getMaximumAACube for" << getID();
|
||||
return false;
|
||||
}
|
||||
|
||||
// make sure children are still in their boxes, also.
|
||||
bool childNeedsUpdate = false;
|
||||
getThisPointer()->forEachDescendant([&](SpatiallyNestablePointer descendant) {
|
||||
if (descendant->queryAABoxNeedsUpdate()) {
|
||||
childNeedsUpdate = true;
|
||||
}
|
||||
});
|
||||
if (childNeedsUpdate) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (_queryAACubeSet && _queryAACube.contains(currentAACube)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue