mirror of
https://github.com/overte-org/overte.git
synced 2025-07-29 21:07:31 +02:00
try to fix unnecessary queryAACube updates
This commit is contained in:
parent
2dc761a57a
commit
e64a4d0536
1 changed files with 6 additions and 4 deletions
|
@ -74,11 +74,13 @@ void SpatiallyNestable::setParentID(const QUuid& parentID) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!_parentKnowsMe) {
|
||||||
bool success = false;
|
bool success = false;
|
||||||
auto parent = getParentPointer(success);
|
auto parent = getParentPointer(success);
|
||||||
if (success && parent) {
|
if (success && parent) {
|
||||||
parent->updateQueryAACube();
|
parent->updateQueryAACube();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform SpatiallyNestable::getParentTransform(bool& success, int depth) const {
|
Transform SpatiallyNestable::getParentTransform(bool& success, int depth) const {
|
||||||
|
|
Loading…
Reference in a new issue