Raw: Fix unitialized values in scene
parent
1ad789bae9
commit
7932a85ca1
|
@ -245,6 +245,7 @@ void RAWImporter::InternReadFile( const std::string& pFile,
|
|||
pScene->mRootNode->mNumChildren = 0;
|
||||
} else {
|
||||
cc = new aiNode*[pScene->mRootNode->mNumChildren];
|
||||
memset(cc, 0, sizeof(aiNode*) * pScene->mRootNode->mNumChildren);
|
||||
pScene->mRootNode->mChildren = cc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue