Merge pull request #2502 from arkeon7/Ogre_with_skeleton_missing
Prevent crash when Ogre skeleton file is missingpull/2501/head^2
commit
56d145e26a
|
@ -864,6 +864,8 @@ bool OgreBinarySerializer::ImportSkeleton(Assimp::IOSystem *pIOHandler, Mesh *me
|
|||
}
|
||||
|
||||
MemoryStreamReaderPtr reader = OpenReader(pIOHandler, mesh->skeletonRef);
|
||||
if (!reader)
|
||||
return false;
|
||||
|
||||
Skeleton *skeleton = new Skeleton();
|
||||
OgreBinarySerializer serializer(reader.get(), OgreBinarySerializer::AM_Skeleton);
|
||||
|
|
Loading…
Reference in New Issue