diff --git a/src/osgWrappers/deprecated-dotosg/osg/ImageSequence.cpp b/src/osgWrappers/deprecated-dotosg/osg/ImageSequence.cpp index a93b59a77..c96811743 100644 --- a/src/osgWrappers/deprecated-dotosg/osg/ImageSequence.cpp +++ b/src/osgWrappers/deprecated-dotosg/osg/ImageSequence.cpp @@ -27,7 +27,25 @@ bool ImageSequence_readLocalData(Object& obj, Input& fr) ImageSequence& is = static_cast(obj); + double timeMultiplier; + if (fr.read("TimeMultiplier", timeMultiplier)) + { + is.setTimeMultiplier(timeMultiplier); + } + std::string modeStr; + if (fr.read("LoopingMode",modeStr)) + { + if (modeStr=="NO_LOOPING") + { + is.setLoopingMode(osg::ImageSequence::NO_LOOPING); + } + else if (modeStr=="LOOPING") + { + is.setLoopingMode(osg::ImageSequence::LOOPING); + } + } + if (fr.read("Mode",modeStr)) { if (modeStr=="PRE_LOAD_ALL_IMAGES") @@ -101,6 +119,18 @@ bool ImageSequence_writeLocalData(const Object& obj, Output& fw) // no current image writing code here // as it is all handled by osg::Registry::writeImage() via plugins. + fw.indent()<<"TimeMultiplier "<