From cda38e03ed8a6dc407319e1363ad710f581de662 Mon Sep 17 00:00:00 2001 From: Selmar Kok Date: Wed, 22 Aug 2018 18:26:10 +0200 Subject: [PATCH] change from warning to error for missing bin files --- tiny_gltf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index fb8070d..d00be44 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -1257,8 +1257,8 @@ static bool LoadExternalFile(std::vector *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; }