projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b84de79
)
X3DImporter: fix coverity finding.
author
Kim Kulling
<kim.kulling@googlemail.com>
Wed, 24 May 2017 19:04:35 +0000
(21:04 +0200)
committer
Kim Kulling
<kim.kulling@googlemail.com>
Wed, 24 May 2017 19:04:35 +0000
(21:04 +0200)
code/X3DImporter_Postprocess.cpp
patch
|
blob
|
history
diff --git
a/code/X3DImporter_Postprocess.cpp
b/code/X3DImporter_Postprocess.cpp
index
996340f
..
0e3f3a8
100644
(file)
--- a/
code/X3DImporter_Postprocess.cpp
+++ b/
code/X3DImporter_Postprocess.cpp
@@
-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)