From 91026b594311736156cf51c00dc522b3faecb7fa Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 25 Sep 2024 10:29:22 +0200 Subject: [PATCH] Fix crash due to mising return in test_triangle --- src/scene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scene.cpp b/src/scene.cpp index 1880f28..278dee8 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -53,6 +53,8 @@ bool test_triangle( return true; } } + + return false; } std::optional test_mesh(const Ray ray, const Object& object, const tinyobj::mesh_t& mesh, float& tClosest) {