Merge pull request #214 from LaurensVoerman/submit-3.4serializerParticle

fix bug in osgb/osgt/osgx readerwriter osgParticle
This commit is contained in:
OpenSceneGraph git repository 2017-03-13 14:27:08 +00:00 committed by GitHub
commit 9ba9221ccf

View File

@ -35,7 +35,7 @@ bool readParticle( osgDB::InputStream& is, osgParticle::Particle& p )
if ( hasInterpolator )
{
is >> is.BEGIN_BRACKET;
p.setAlphaInterpolator( is.readObjectOfType<osgParticle::Interpolator>() );
p.setSizeInterpolator( is.readObjectOfType<osgParticle::Interpolator>() );
is >> is.END_BRACKET;
}
is >> is.PROPERTY("AlphaInterpolator") >> hasInterpolator;
@ -49,7 +49,7 @@ bool readParticle( osgDB::InputStream& is, osgParticle::Particle& p )
if ( hasInterpolator )
{
is >> is.BEGIN_BRACKET;
p.setAlphaInterpolator( is.readObjectOfType<osgParticle::Interpolator>() );
p.setColorInterpolator( is.readObjectOfType<osgParticle::Interpolator>() );
is >> is.END_BRACKET;
}