Error message and hint to asset pack if asset loading (model, texture) fails
This commit is contained in:
parent
02bb523e5b
commit
a3e3dd999f
2 changed files with 16 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue