mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-18 12:44:25 +08:00
fix(row926): a bug that filename is empty when parse glb
when parse glb, filename maybe a empty value, it will be wrong
This commit is contained in:
parent
59130d1a19
commit
b721fb76c6
@ -923,7 +923,7 @@ static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err,
|
|||||||
paths.push_back(".");
|
paths.push_back(".");
|
||||||
|
|
||||||
std::string filepath = FindFile(paths, filename);
|
std::string filepath = FindFile(paths, filename);
|
||||||
if (filepath.empty()) {
|
if (filepath.empty() || filename.empty()) {
|
||||||
if (err) {
|
if (err) {
|
||||||
(*err) += "File not found : " + filename + "\n";
|
(*err) += "File not found : " + filename + "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user