From 5c2e89ac28ad233cb528725da6091f8139a5fea9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 8 Sep 2009 15:36:28 +0000 Subject: [PATCH] Fixed the set up of osgVolume::ImageLayer scale and offset. --- src/osgPresentation/SlideShowConstructor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgPresentation/SlideShowConstructor.cpp b/src/osgPresentation/SlideShowConstructor.cpp index bcaf7117e..005d1f61d 100644 --- a/src/osgPresentation/SlideShowConstructor.cpp +++ b/src/osgPresentation/SlideShowConstructor.cpp @@ -1545,12 +1545,12 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position volume->addChild(tile.get()); osg::ref_ptr layer = new osgVolume::ImageLayer(image.get()); - layer->rescaleToZeroToOneRange(); if (details) { layer->setTexelOffset(details->getTexelOffset()); layer->setTexelScale(details->getTexelScale()); } + layer->rescaleToZeroToOneRange(); if (matrix.valid()) {