mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 00:22:13 +02:00
Merge pull request #14302 from SamGondelman/queryAACube
Don't update QueryAACube in setParentID if _parentID didn't change
This commit is contained in:
commit
312f336210
1 changed files with 6 additions and 4 deletions
|
@ -74,10 +74,12 @@ void SpatiallyNestable::setParentID(const QUuid& parentID) {
|
|||
}
|
||||
});
|
||||
|
||||
bool success = false;
|
||||
auto parent = getParentPointer(success);
|
||||
if (success && parent) {
|
||||
parent->updateQueryAACube();
|
||||
if (!_parentKnowsMe) {
|
||||
bool success = false;
|
||||
auto parent = getParentPointer(success);
|
||||
if (success && parent) {
|
||||
parent->updateQueryAACube();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue