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