Merge branch 'master' into feat/gltf-loader
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user