From 985fdc89654b111eb31632a8af50b39971a9428f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 3 Jun 2011 13:47:59 +0000 Subject: [PATCH] Added support for using the sampleDensityWhenMoving tag with all techniques --- src/osgPresentation/SlideShowConstructor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgPresentation/SlideShowConstructor.cpp b/src/osgPresentation/SlideShowConstructor.cpp index 6c0ed268e..77e500f37 100644 --- a/src/osgPresentation/SlideShowConstructor.cpp +++ b/src/osgPresentation/SlideShowConstructor.cpp @@ -1833,6 +1833,7 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position cp->addProperty(sd); cp->addProperty(tp); cp->addProperty(new osgVolume::LightingProperty); + if (sdm) cp->addProperty(sdm); if (tfp) cp->addProperty(tfp); sp->addProperty(cp); @@ -1844,6 +1845,7 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position cp->addProperty(sd); cp->addProperty(tp); cp->addProperty(new osgVolume::IsoSurfaceProperty(volumeData.cutoffValue)); + if (sdm) cp->addProperty(sdm); if (tfp) cp->addProperty(tfp); sp->addProperty(cp); @@ -1856,6 +1858,7 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position cp->addProperty(sd); cp->addProperty(tp); cp->addProperty(new osgVolume::MaximumIntensityProjectionProperty); + if (sdm) cp->addProperty(sdm); if (tfp) cp->addProperty(tfp); sp->addProperty(cp);