Error message and hint to asset pack if asset loading (model, texture) fails

This commit is contained in:
saschawillems 2017-12-11 22:14:34 +01:00
parent 02bb523e5b
commit a3e3dd999f
2 changed files with 16 additions and 6 deletions

View file

@ -184,6 +184,10 @@ namespace vks
free(meshData);
#else
pScene = Importer.ReadFile(filename.c_str(), flags);
if (!pScene) {
std::string error = Importer.GetErrorString();
vks::tools::exitFatal(error + "\n\nThe file may be part of the additional asset pack.\n\nRun \"download_assets.py\" in the repository root to download the latest version.", "Error");
}
#endif
if (pScene)