bugfix: osgVolume::ScalarProperty clone crash
This commit is contained in:
parent
2bdf56cb4b
commit
0433d29d11
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user