From 796b9f0a9bcab3c6d1d2d9faee3d355f50ee86df Mon Sep 17 00:00:00 2001 From: Laurens Voerman Date: Mon, 6 Mar 2017 15:33:22 +0100 Subject: [PATCH] fix bug in osgb/osgt/osgx readerwriter causing the osgParticle-SizeInterpolator and -ColorInterpolator to dissapear --- src/osgWrappers/serializers/osgParticle/Particle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgWrappers/serializers/osgParticle/Particle.cpp b/src/osgWrappers/serializers/osgParticle/Particle.cpp index c92716e41..b179f76fe 100644 --- a/src/osgWrappers/serializers/osgParticle/Particle.cpp +++ b/src/osgWrappers/serializers/osgParticle/Particle.cpp @@ -35,7 +35,7 @@ bool readParticle( osgDB::InputStream& is, osgParticle::Particle& p ) if ( hasInterpolator ) { is >> is.BEGIN_BRACKET; - p.setAlphaInterpolator( is.readObjectOfType() ); + p.setSizeInterpolator( is.readObjectOfType() ); 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() ); + p.setColorInterpolator( is.readObjectOfType() ); is >> is.END_BRACKET; }