Commit 0e5893b2 authored by Jan Möbius's avatar Jan Möbius

Fixed cppcheck warning

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16835 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8b98e2ab
......@@ -822,7 +822,7 @@ rotationOfTwoVectors( const VectorT<Scalar,3>& _v0,
_axis = (v0 % v1).normalize();
// Is nan?
if ( _axis != _axis ) {
if ( std::isnan(_axis[0]) || std::isnan(_axis[1]) || std::isnan(_axis[2]) ) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment