Commit e536decb authored by Jan Möbius's avatar Jan Möbius

Fixed bug in GLPrimitive

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16782 383ad7c9-94d9-4d36-a494-682f7c89f535
parent bfb765d8
......@@ -415,7 +415,7 @@ void GLCone::draw(GLState& _state, float _height, const ACG::Vec3f& _center, ACG
}
ACG::Vec3f vDelta = vBindDir - _upDir;
if (fabsf(OpenMesh::dot(vDelta, vDelta) < 1e-3f))
if ( fabsf(OpenMesh::dot(vDelta, vDelta)) < 1e-3f)
mAlign.identity();
// scale
......@@ -468,7 +468,7 @@ void GLCone::addToRenderer(IRenderer* _renderer,
}
ACG::Vec3f vDelta = vBindDir - _upDir;
if (fabsf(OpenMesh::dot(vDelta, vDelta) < 1e-3f))
if ( fabsf(OpenMesh::dot(vDelta, vDelta)) < 1e-3f)
mAlign.identity();
// scale
......@@ -812,7 +812,7 @@ void GLPartialDisk::draw( GLState& _state, const ACG::Vec3f& _center, ACG::Vec3f
}
ACG::Vec3f vDelta = vBindDir - _upDir;
if (fabsf(OpenMesh::dot(vDelta, vDelta) < 1e-3f))
if ( fabsf(OpenMesh::dot(vDelta, vDelta)) < 1e-3f)
mAlign.identity();
ACG::GLMatrixd mAlignInv(mAlign);
......
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