We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90176cd commit 275efdfCopy full SHA for 275efdf
src/Externals/spire/arc-ball/ArcBall.cpp
@@ -84,7 +84,7 @@ glm::quat ArcBall::quatFromUnitSphere(const glm::vec3& from, const glm::vec3& to
84
85
float angle = std::acos(glm::dot(from, to));
86
87
- if(angle <= 0.00001)
+ if(angle <= 0.00001 || std::isnan(angle))
88
return glm::quat(1.0, 0.0, 0.0, 0.0);
89
90
return glm::angleAxis(angle, axis);
0 commit comments