Commit a8dea2b4 authored by Christopher Tenter's avatar Christopher Tenter

fix unused parameter refs #2509

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@21117 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6cd1662d
......@@ -384,6 +384,7 @@ int ArrowNode::addArrow(const Vec3f& _start, const Vec3f& _dir, const Vec3f& _no
a.dir = _dir;
a.scale = _scale;
a.color = _color;
a.normal = _normal;
a.orthonormalize();
......@@ -415,6 +416,8 @@ void ArrowNode::Arrow::orthonormalize()
if (normal.sqrnorm() < 1e-6f)
normal = Vec3f(0.0f, 1.0f, 0.0f);
normal.normalize();
while (std::fabs(dir | normal) > 0.99f || normal.sqrnorm() < 0.01f)
{
for (int i = 0; i < 3; ++i)
......
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