fix bug in osgb/osgt/osgx readerwriter causing the osgParticle-SizeInterpolator and -ColorInterpolator to dissapear
This commit is contained in:
parent
95818b0819
commit
796b9f0a9b
@ -35,7 +35,7 @@ bool readParticle( osgDB::InputStream& is, osgParticle::Particle& p )
|
|||||||
if ( hasInterpolator )
|
if ( hasInterpolator )
|
||||||
{
|
{
|
||||||
is >> is.BEGIN_BRACKET;
|
is >> is.BEGIN_BRACKET;
|
||||||
p.setAlphaInterpolator( is.readObjectOfType<osgParticle::Interpolator>() );
|
p.setSizeInterpolator( is.readObjectOfType<osgParticle::Interpolator>() );
|
||||||
is >> is.END_BRACKET;
|
is >> is.END_BRACKET;
|
||||||
}
|
}
|
||||||
is >> is.PROPERTY("AlphaInterpolator") >> hasInterpolator;
|
is >> is.PROPERTY("AlphaInterpolator") >> hasInterpolator;
|
||||||
@ -49,7 +49,7 @@ bool readParticle( osgDB::InputStream& is, osgParticle::Particle& p )
|
|||||||
if ( hasInterpolator )
|
if ( hasInterpolator )
|
||||||
{
|
{
|
||||||
is >> is.BEGIN_BRACKET;
|
is >> is.BEGIN_BRACKET;
|
||||||
p.setAlphaInterpolator( is.readObjectOfType<osgParticle::Interpolator>() );
|
p.setColorInterpolator( is.readObjectOfType<osgParticle::Interpolator>() );
|
||||||
is >> is.END_BRACKET;
|
is >> is.END_BRACKET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user