aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpolymorph.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llpolymorph.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/newview/llpolymorph.cpp')
-rw-r--r--linden/indra/newview/llpolymorph.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/newview/llpolymorph.cpp b/linden/indra/newview/llpolymorph.cpp
index 2d1375d..b36f0e2 100644
--- a/linden/indra/newview/llpolymorph.cpp
+++ b/linden/indra/newview/llpolymorph.cpp
@@ -214,6 +214,13 @@ BOOL LLPolyMorphTargetInfo::parseXml(LLXmlTreeNode* node)
214 214
215 LLXmlTreeNode *paramNode = node->getChildByName("param_morph"); 215 LLXmlTreeNode *paramNode = node->getChildByName("param_morph");
216 216
217 if (NULL == paramNode)
218 {
219 llwarns << "Failed to getChildByName(\"param_morph\")"
220 << llendl;
221 return FALSE;
222 }
223
217 for (LLXmlTreeNode* child_node = paramNode->getFirstChild(); 224 for (LLXmlTreeNode* child_node = paramNode->getFirstChild();
218 child_node; 225 child_node;
219 child_node = paramNode->getNextChild()) 226 child_node = paramNode->getNextChild())
@@ -256,7 +263,10 @@ LLPolyMorphTarget::LLPolyMorphTarget(LLPolyMesh *poly_mesh)
256//----------------------------------------------------------------------------- 263//-----------------------------------------------------------------------------
257LLPolyMorphTarget::~LLPolyMorphTarget() 264LLPolyMorphTarget::~LLPolyMorphTarget()
258{ 265{
259 delete mVertMask; 266 if (mVertMask)
267 {
268 delete mVertMask;
269 }
260} 270}
261 271
262//----------------------------------------------------------------------------- 272//-----------------------------------------------------------------------------