Skip to content
Snippets Groups Projects
Commit ee5463a9 authored by callum_linden's avatar callum_linden
Browse files

Reworked changes to more closely match Cinders' - hers seem more correct

parent 129be3f6
No related branches found
No related tags found
No related merge requests found
...@@ -445,7 +445,7 @@ class LLOctreeNode : public LLTreeNode<T> ...@@ -445,7 +445,7 @@ class LLOctreeNode : public LLTreeNode<T>
mDataEnd = &mData[0]; mDataEnd = &mData[0];
} }
BaseType::notifyRemoval(data); this->notifyRemoval(data);
checkAlive(); checkAlive();
} }
...@@ -755,10 +755,10 @@ class LLOctreeRoot : public LLOctreeNode<T> ...@@ -755,10 +755,10 @@ class LLOctreeRoot : public LLOctreeNode<T>
return false; 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 //we got it, just act like a branch
oct_node* node = oct_node::getNodeAt(data); oct_node* node = this->getNodeAt(data);
if (node == this) if (node == this)
{ {
LLOctreeNode<T>::insert(data); LLOctreeNode<T>::insert(data);
...@@ -771,7 +771,7 @@ class LLOctreeRoot : public LLOctreeNode<T> ...@@ -771,7 +771,7 @@ class LLOctreeRoot : public LLOctreeNode<T>
else if (this->getChildCount() == 0) else if (this->getChildCount() == 0)
{ {
//first object being added, just wrap it up //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; LLVector4a center, size;
center = this->getCenter(); center = this->getCenter();
...@@ -786,7 +786,7 @@ class LLOctreeRoot : public LLOctreeNode<T> ...@@ -786,7 +786,7 @@ class LLOctreeRoot : public LLOctreeNode<T>
} }
else 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 //the data is outside the root node, we need to grow
LLVector4a center(this->getCenter()); LLVector4a center(this->getCenter());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment