bugfix: osgVolume::ScalarProperty clone crash

This commit is contained in:
Laurens Voerman 2016-08-23 14:35:47 +02:00
parent 2bdf56cb4b
commit 0433d29d11

View File

@ -102,7 +102,7 @@ ScalarProperty::ScalarProperty(const std::string& scalarName, float value)
ScalarProperty::ScalarProperty(const ScalarProperty& sp, const osg::CopyOp& copyop): ScalarProperty::ScalarProperty(const ScalarProperty& sp, const osg::CopyOp& copyop):
Property(sp,copyop) Property(sp,copyop)
{ {
_uniform = new osg::Uniform(sp._uniform->getName().c_str(), getValue()); _uniform = new osg::Uniform(*sp._uniform.get(), copyop);
} }