diff options
Diffstat (limited to 'indra/newview/llvoclouds.cpp')
-rw-r--r-- | indra/newview/llvoclouds.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llvoclouds.cpp b/indra/newview/llvoclouds.cpp index 1e5caa17d4..7fc96975c9 100644 --- a/indra/newview/llvoclouds.cpp +++ b/indra/newview/llvoclouds.cpp @@ -106,6 +106,12 @@ BOOL LLVOClouds::updateGeometry(LLDrawable *drawable) for ( ; face_indx < num_faces; face_indx++) { facep = drawable->getFace(face_indx); + if (!facep) + { + llwarns << "No facep for index " << face_indx << llendl; + continue; + } + if (isParticle()) { facep->setSize(1,1); @@ -123,6 +129,12 @@ BOOL LLVOClouds::updateGeometry(LLDrawable *drawable) for ( ; face_indx < drawable->getNumFaces(); face_indx++) { facep = drawable->getFace(face_indx); + if (!facep) + { + llwarns << "No facep for index " << face_indx << llendl; + continue; + } + facep->setTEOffset(face_indx); facep->setSize(0,0); } |