mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 05:56:03 +08: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:
parent
6d38ca3894
commit
fd84ceb791
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user