summaryrefslogtreecommitdiff
path: root/indra/newview/llspatialpartition.h
diff options
context:
space:
mode:
authorKelly Washington <kelly@lindenlab.com>2012-10-25 16:13:39 -0700
committerKelly Washington <kelly@lindenlab.com>2012-10-25 16:13:39 -0700
commit0cdff2817bdc342e0ac8b3c8711e3f7a72f1f617 (patch)
tree0fbaca9292450f05588336eb6639b12d182156e1 /indra/newview/llspatialpartition.h
parent03fa24f8aecc071bac920a400c122cbce0b029b4 (diff)
parent1743e6a81330824021667000f8acdd6cf64dbf1b (diff)
Merge
Diffstat (limited to 'indra/newview/llspatialpartition.h')
-rw-r--r--indra/newview/llspatialpartition.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llspatialpartition.h b/indra/newview/llspatialpartition.h
index f050df2b39..e63037b4a8 100644
--- a/indra/newview/llspatialpartition.h
+++ b/indra/newview/llspatialpartition.h
@@ -350,6 +350,8 @@ public:
element_list& getData() { return mOctreeNode->getData(); }
element_iter getDataBegin() { return mOctreeNode->getDataBegin(); }
element_iter getDataEnd() { return mOctreeNode->getDataEnd(); }
+ bool hasElement(LLDrawable* drawablep) { return std::find(mOctreeNode->getDataBegin(), mOctreeNode->getDataEnd(), drawablep) != mOctreeNode->getDataEnd(); }
+
U32 getElementCount() const { return mOctreeNode->getElementCount(); }
bool isEmpty() const { return mOctreeNode->isEmpty(); }