Merge pull request #214 from LaurensVoerman/submit-3.4serializerParticle
fix bug in osgb/osgt/osgx readerwriter osgParticle
This commit is contained in:
commit
9ba9221ccf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user