Skip to content

Commit

Permalink
X3DImporter: fix coverity finding.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed May 24, 2017
1 parent b84de79 commit ec496a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/X3DImporter_Postprocess.cpp
Expand Up @@ -504,6 +504,9 @@ void X3DImporter::Postprocess_BuildMesh(const CX3DImporter_NodeElement& pNodeEle
// copy additional information from children
for(std::list<CX3DImporter_NodeElement*>::iterator ch_it = tnemesh.Child.begin(); ch_it != tnemesh.Child.end(); ch_it++)
{
if ( nullptr == *pMesh ) {
break;
}
if((*ch_it)->Type == CX3DImporter_NodeElement::ENET_Color)
MeshGeometry_AddColor(**pMesh, ((CX3DImporter_NodeElement_Color*)*ch_it)->Value,tnemesh.ColorPerVertex);
else if((*ch_it)->Type == CX3DImporter_NodeElement::ENET_ColorRGBA)
Expand Down

0 comments on commit ec496a5

Please sign in to comment.