iSIBImporter: fix possible dereferncing of a null pointer.
parent
6575696459
commit
1acd24e0ae
|
@ -914,10 +914,12 @@ void SIBImporter::InternReadFile(const std::string& pFile,
|
||||||
for (size_t n=0;n<sib.lights.size();n++)
|
for (size_t n=0;n<sib.lights.size();n++)
|
||||||
{
|
{
|
||||||
aiLight* light = sib.lights[n];
|
aiLight* light = sib.lights[n];
|
||||||
aiNode* node = new aiNode;
|
if ( nullptr != light ) {
|
||||||
root->mChildren[childIdx++] = node;
|
aiNode* node = new aiNode;
|
||||||
node->mName = light->mName;
|
root->mChildren[ childIdx++ ] = node;
|
||||||
node->mParent = root;
|
node->mName = light->mName;
|
||||||
|
node->mParent = root;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue