X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry%2Fgeometry.cpp;h=ebd47e9ab9cb10aebe5a7ec760ee74d368dfb460;hb=ba93deae894a7e35d95aee32c548ac4e7400c771;hp=7d099cf156de9caa2650983395a7dfc562f03a8f;hpb=0ac44f8cd740889f13b07e42327eaacff72830d0;p=blank.git diff --git a/src/geometry/geometry.cpp b/src/geometry/geometry.cpp index 7d099cf..ebd47e9 100644 --- a/src/geometry/geometry.cpp +++ b/src/geometry/geometry.cpp @@ -152,6 +152,7 @@ bool Intersection( for (const glm::vec3 &axis : axes) { if (any(isnan(axis))) { // can result from the cross products if A and B have parallel axes + ++cur_axis; continue; } float a_min = std::numeric_limits::infinity();