aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoclouds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvoclouds.cpp')
-rw-r--r--linden/indra/newview/llvoclouds.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/llvoclouds.cpp b/linden/indra/newview/llvoclouds.cpp
index 24084cf..be7c1b1 100644
--- a/linden/indra/newview/llvoclouds.cpp
+++ b/linden/indra/newview/llvoclouds.cpp
@@ -126,6 +126,12 @@ BOOL LLVOClouds::updateGeometry(LLDrawable *drawable)
126 for ( ; face_indx < num_faces; face_indx++) 126 for ( ; face_indx < num_faces; face_indx++)
127 { 127 {
128 facep = drawable->getFace(face_indx); 128 facep = drawable->getFace(face_indx);
129 if (!facep)
130 {
131 llwarns << "No facep for index " << face_indx << llendl;
132 continue;
133 }
134
129 if (isParticle()) 135 if (isParticle())
130 { 136 {
131 facep->setSize(1,1); 137 facep->setSize(1,1);
@@ -143,6 +149,12 @@ BOOL LLVOClouds::updateGeometry(LLDrawable *drawable)
143 for ( ; face_indx < drawable->getNumFaces(); face_indx++) 149 for ( ; face_indx < drawable->getNumFaces(); face_indx++)
144 { 150 {
145 facep = drawable->getFace(face_indx); 151 facep = drawable->getFace(face_indx);
152 if (!facep)
153 {
154 llwarns << "No facep for index " << face_indx << llendl;
155 continue;
156 }
157
146 facep->setTEOffset(face_indx); 158 facep->setTEOffset(face_indx);
147 facep->setSize(0,0); 159 facep->setSize(0,0);
148 } 160 }