mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 04:15:54 +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);
|
std::string filepath = FindFile(paths, filename, fs);
|
||||||
if (filepath.empty() || filename.empty()) {
|
if (filepath.empty() || filename.empty()) {
|
||||||
if (warn) {
|
if (err) {
|
||||||
(*warn) += "File not found : " + filename + "\n";
|
(*err) += "File not found : " + filename + "\n";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user