mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 09:33:30 +02:00
CR feedback
This commit is contained in:
parent
29bbeadbc7
commit
756840d541
1 changed files with 2 additions and 5 deletions
|
@ -240,18 +240,15 @@ OctreeElement* OctreeElement::removeChildAtIndex(int childIndex) {
|
|||
}
|
||||
|
||||
bool OctreeElement::isParentOf(OctreeElement* possibleChild) const {
|
||||
bool isParentOf = false;
|
||||
if (possibleChild) {
|
||||
for (int childIndex = 0; childIndex < NUMBER_OF_CHILDREN; childIndex++) {
|
||||
OctreeElement* childAt = getChildAtIndex(childIndex);
|
||||
|
||||
if (childAt == possibleChild) {
|
||||
isParentOf = true;
|
||||
break;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return isParentOf;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue