From 913e15911401c6faf382b858c56a664104282b99 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 25 Jun 2011 07:07:16 +0000 Subject: [PATCH] Tightened up float usage. --- examples/osganimationskinning/osganimationskinning.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/osganimationskinning/osganimationskinning.cpp b/examples/osganimationskinning/osganimationskinning.cpp index 52b2a48c0..c288c513f 100644 --- a/examples/osganimationskinning/osganimationskinning.cpp +++ b/examples/osganimationskinning/osganimationskinning.cpp @@ -148,11 +148,11 @@ void initVertexMap(osgAnimation::Bone* b0, { float val = (*array)[i][0]; std::cout << val << std::endl; - if (val >= -1 && val <= 0) + if (val >= -1.0f && val <= 0.0f) (*vim)[b0->getName()].push_back(osgAnimation::VertexIndexWeight(i,1.0f)); - else if ( val > 0 && val <= 1) + else if ( val > 0.0f && val <= 1.0f) (*vim)[b1->getName()].push_back(osgAnimation::VertexIndexWeight(i,1.0f)); - else if ( val > 1) + else if ( val > 1.0f) (*vim)[b2->getName()].push_back(osgAnimation::VertexIndexWeight(i,1.0f)); }