mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-05 21:08:52 +00:00
Properly fail also when external *.bin are missing from *.glb.
Consistency with behavior for external *.bin files referenced from *.gltf.
This commit is contained in:
@@ -2260,8 +2260,10 @@ static bool ParseBuffer(Buffer *buffer, std::string *err, const json &o,
|
||||
}
|
||||
} else {
|
||||
// External .bin file.
|
||||
LoadExternalFile(&buffer->data, err, /* warn */ nullptr, buffer->uri,
|
||||
basedir, bytes, true, fs);
|
||||
if (!LoadExternalFile(&buffer->data, err, /* warn */ nullptr, buffer->uri,
|
||||
basedir, bytes, true, fs)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// load data from (embedded) binary data
|
||||
|
||||
Reference in New Issue
Block a user