summaryrefslogtreecommitdiff
path: root/indra/llmath/llvolume.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-07-13 13:04:16 -0400
committerOz Linden <oz@lindenlab.com>2012-07-13 13:04:16 -0400
commitc3d9f0e41cc0cde6f1383225a8937d128e5838d8 (patch)
tree24d60b5329c102c672ccd55e31527a1f304eca6a /indra/llmath/llvolume.cpp
parent254c2703632ef5d7a875597d4907804c63ed8e72 (diff)
parente51a60536dc082be563c2f5b3b4f86df843d3a14 (diff)
merge changes for DRTVWR-179
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r--[-rwxr-xr-x]indra/llmath/llvolume.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 11fa7080ce..53d56e96da 100755..100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -317,16 +317,16 @@ public:
LLVector4a& min = node->mExtents[0];
LLVector4a& max = node->mExtents[1];
- if (!branch->getData().empty())
+ if (!branch->isEmpty())
{ //node has data, find AABB that binds data set
- const LLVolumeTriangle* tri = *(branch->getData().begin());
+ const LLVolumeTriangle* tri = *(branch->getDataBegin());
//initialize min/max to first available vertex
min = *(tri->mV[0]);
max = *(tri->mV[0]);
for (LLOctreeNode<LLVolumeTriangle>::const_element_iter iter =
- branch->getData().begin(); iter != branch->getData().end(); ++iter)
+ branch->getDataBegin(); iter != branch->getDataEnd(); ++iter)
{ //for each triangle in node
//stretch by triangles in node
@@ -341,7 +341,7 @@ public:
max.setMax(max, *tri->mV[2]);
}
}
- else if (!branch->getChildren().empty())
+ else if (!branch->isLeaf())
{ //no data, but child nodes exist
LLVolumeOctreeListener* child = (LLVolumeOctreeListener*) branch->getChild(0)->getListener(0);