diff --git a/code/Ogre/OgreBinarySerializer.cpp b/code/Ogre/OgreBinarySerializer.cpp index b2326e244..589e69c7e 100644 --- a/code/Ogre/OgreBinarySerializer.cpp +++ b/code/Ogre/OgreBinarySerializer.cpp @@ -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); diff --git a/code/X3D/FIReader.cpp b/code/X3D/FIReader.cpp old mode 100755 new mode 100644 diff --git a/code/glTF/glTFImporter.cpp b/code/glTF/glTFImporter.cpp old mode 100755 new mode 100644 diff --git a/code/glTF2/glTF2Asset.inl b/code/glTF2/glTF2Asset.inl old mode 100755 new mode 100644 diff --git a/code/glTF2/glTF2Importer.cpp b/code/glTF2/glTF2Importer.cpp old mode 100755 new mode 100644