mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 03:25:56 +08:00
change from warning to error for missing bin files
This commit is contained in:
parent
fcdfc71ba6
commit
cda38e03ed
@ -1257,8 +1257,8 @@ static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err,
|
||||
|
||||
std::string filepath = FindFile(paths, filename, fs);
|
||||
if (filepath.empty() || filename.empty()) {
|
||||
if (warn) {
|
||||
(*warn) += "File not found : " + filename + "\n";
|
||||
if (err) {
|
||||
(*err) += "File not found : " + filename + "\n";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user