mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-05 04:48:53 +00:00
change from warning to error for missing bin files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user