From 169d9f550e15a49a5e798b1a4ce673e23f6091bd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 24 Sep 2008 10:20:23 +0000 Subject: [PATCH] Fixed transfer function parsing --- examples/osgvolume/osgvolume.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index 4fc13e85e..e78c0892f 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -1720,14 +1720,15 @@ int main( int argc, char **argv ) { osg::TransferFunction1D::ValueMap valueMap; float value = 0.0; - while(fin && value<1.0) + while(fin && value<=1.0) { float red, green, blue, alpha; fin >> red >> green >> blue >> alpha; if (fin) { - std::cout<<"value = "<