Commit 986ac725 authored by Jan Möbius's avatar Jan Möbius

Bad fabsf usage

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20173 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8fd506e9
......@@ -118,7 +118,7 @@ void visualizeVectorLengthAsColorForEntity2(
template <typename VectorType> ACG::Vec3d generateVec3AtLocation(VectorType uv, ACG::Vec3d normal)
{
ACG::Vec3d tan;
if(fabsf(normal[0]) > fabsf(normal[1]))
if(std::abs(normal[0]) > std::abs(normal[1]))
tan = ACG::Vec3d(-normal[2], 0, normal[0]);
else tan = ACG::Vec3d(0, normal[2], -normal[1]);
ACG::Vec3d bi = normal % tan;
......
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