Merge pull request #14302 from SamGondelman/queryAACube

Don't update QueryAACube in setParentID if _parentID didn't change
This commit is contained in:
Sam Gondelman 2018-10-31 11:46:16 -07:00 committed by GitHub
commit 312f336210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
}
}