diff --git a/libs/gfx/source/gltf_mesh.cpp b/libs/gfx/source/gltf_mesh.cpp index 9def1b61..6abfb879 100644 --- a/libs/gfx/source/gltf_mesh.cpp +++ b/libs/gfx/source/gltf_mesh.cpp @@ -45,7 +45,9 @@ namespace psemek::gfx util::span mesh(std::string_view name) const override { - return meshes_.at(name); + if (auto it = meshes_.find(name); it != meshes_.end()) + return it->second; + return {}; } private: