1
0

Merge branch 'master' into feat/gltf-loader

This commit is contained in:
JosiahWI
2023-05-15 09:59:59 -05:00
185 changed files with 6431 additions and 9257 deletions

View File

@@ -52,6 +52,7 @@ public:
private:
const std::vector<unsigned char>& m_buf;
std::size_t m_offset;
int m_filesize;
};
// A helper function to disable tinygltf embedded image loading
@@ -232,7 +233,7 @@ IAnimatedMesh* CGLTFMeshFileLoader::createMesh(io::IReadFile* file)
{
tinygltf::Model model{};
if (file->getSize() == 0 || !tryParseGLTF(file, model)) {
if (file->getSize() <= 0 || !tryParseGLTF(file, model)) {
return nullptr;
}