Skip to content

Commit

Permalink
gracefully handle inability to load gltf model
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Jan 26, 2024
1 parent 36e05a1 commit f094051
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/engine/model/gltf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ gltf::gltfmeshgroup::gltfmeshgroup()

bool gltf::gltfmeshgroup::loadmesh(const char *filename, float smooth, part &p)
{
if(!fileexists(filename, "w"))
{
return false;
}
GLTFModelInfo mi(filename);

gltfmesh *m = new gltfmesh;
Expand Down

0 comments on commit f094051

Please sign in to comment.