Merge pull request #19 from jianghaosen/devel

fix(row926): a bug that filename is empty when parse glb
This commit is contained in:
Syoyo Fujita 2017-08-26 17:03:58 +09:00 committed by GitHub
commit dadcfa5306

View File

@ -923,7 +923,7 @@ static bool LoadExternalFile(std::vector<unsigned char> *out, std::string *err,
paths.push_back(".");
std::string filepath = FindFile(paths, filename);
if (filepath.empty()) {
if (filepath.empty() || filename.empty()) {
if (err) {
(*err) += "File not found : " + filename + "\n";
}