diff --git a/src/osgVolume/Property.cpp b/src/osgVolume/Property.cpp index 33987cc68..01fede11c 100644 --- a/src/osgVolume/Property.cpp +++ b/src/osgVolume/Property.cpp @@ -102,7 +102,7 @@ ScalarProperty::ScalarProperty(const std::string& scalarName, float value) ScalarProperty::ScalarProperty(const ScalarProperty& sp, const osg::CopyOp& copyop): Property(sp,copyop) { - _uniform = new osg::Uniform(sp._uniform->getName().c_str(), getValue()); + _uniform = new osg::Uniform(*sp._uniform.get(), copyop); }