diff options
author | Oz Linden <oz@lindenlab.com> | 2014-11-14 22:32:54 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2014-11-14 22:32:54 -0500 |
commit | 6b4916fc758ba1ab70cced59b8fb959e241b984a (patch) | |
tree | 9b72b24291554abe87456776ebaaa56e6c3f8ad7 /indra/llmath | |
parent | dbdbcbbd3cc3ba21b255f992fae291ab3f13edcf (diff) | |
parent | cfb1779e26d1ab15acdbc9d2fc5982b84af56765 (diff) |
merge up to tip of viewer-tools-update
Diffstat (limited to 'indra/llmath')
-rwxr-xr-x | indra/llmath/lloctree.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/indra/llmath/lloctree.h b/indra/llmath/lloctree.h index 7fa1661bc2..280d2653d3 100755 --- a/indra/llmath/lloctree.h +++ b/indra/llmath/lloctree.h @@ -322,8 +322,8 @@ public: //is it here? if (isInside(data->getPositionGroup())) { - if (((getElementCount() < gOctreeMaxCapacity || ((getSize()[0] <= gOctreeMinSize) && contains(data->getBinRadius()))) || - ((data->getBinRadius() > getSize()[0] && parent && parent->getElementCount() >= gOctreeMaxCapacity)))) + if ((((getElementCount() < gOctreeMaxCapacity || getSize()[0] <= gOctreeMinSize) && contains(data->getBinRadius())) || + (data->getBinRadius() > getSize()[0] && parent && parent->getElementCount() >= gOctreeMaxCapacity))) { //it belongs here mData.push_back(NULL); mData[mElementCount] = data; @@ -445,7 +445,7 @@ public: mDataEnd = &mData[0]; } - BaseType::notifyRemoval(data); + this->notifyRemoval(data); checkAlive(); } @@ -755,10 +755,10 @@ public: return false; } - if (this->getSize()[0] > data->getBinRadius() && oct_node::isInside(data->getPositionGroup())) + if (this->getSize()[0] > data->getBinRadius() && this->isInside(data->getPositionGroup())) { //we got it, just act like a branch - oct_node* node = oct_node::getNodeAt(data); + oct_node* node = this->getNodeAt(data); if (node == this) { LLOctreeNode<T>::insert(data); @@ -771,7 +771,7 @@ public: else if (this->getChildCount() == 0) { //first object being added, just wrap it up - while (!(this->getSize()[0] > data->getBinRadius() && oct_node::isInside(data->getPositionGroup()))) + while (!(this->getSize()[0] > data->getBinRadius() && this->isInside(data->getPositionGroup()))) { LLVector4a center, size; center = this->getCenter(); @@ -786,7 +786,7 @@ public: } else { - while (!(this->getSize()[0] > data->getBinRadius() && oct_node::isInside(data->getPositionGroup()))) + while (!(this->getSize()[0] > data->getBinRadius() && this->isInside(data->getPositionGroup()))) { //the data is outside the root node, we need to grow LLVector4a center(this->getCenter()); |