summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawable.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-12-04 21:46:32 -0700
committerXiaohong Bao <bao@lindenlab.com>2013-12-04 21:46:32 -0700
commit526be23096671e8916ec2b5644a46020f33479a8 (patch)
tree1dfe20a413e5c9743fad71f2d8dd53bcab044b85 /indra/newview/lldrawable.cpp
parent7e17824f61a0ee160d2c28e24bdd87a005b4c17d (diff)
fix for SH-4627: "Object out of range" is not detected on teleport.
Diffstat (limited to 'indra/newview/lldrawable.cpp')
-rwxr-xr-xindra/newview/lldrawable.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp
index 7414b24811..5c42868127 100755
--- a/indra/newview/lldrawable.cpp
+++ b/indra/newview/lldrawable.cpp
@@ -968,6 +968,20 @@ void LLDrawable::shiftPos(const LLVector4a &shift_vector)
mVObjp->onShift(shift_vector);
}
+bool LLDrawable::hasVertexBuffer() const
+{
+ for (S32 i = 0; i < getNumFaces(); i++)
+ {
+ LLFace *facep = getFace(i);
+ if (facep && facep->getVertexBuffer() != NULL)
+ {
+ return true;
+ }
+ }
+
+ return false;
+}
+
const LLVector3& LLDrawable::getBounds(LLVector3& min, LLVector3& max) const
{
mXform.getMinMax(min,max);