From b0cf7823a7819a25115ed0b0369cde8aaca01572 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 10 Sep 2008 11:27:00 +0000 Subject: [PATCH] Added playing of the imagesequence on creation of the imagesequence --- examples/osgimagesequence/osgimagesequence.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/osgimagesequence/osgimagesequence.cpp b/examples/osgimagesequence/osgimagesequence.cpp index f7f8614a3..8d546d60b 100644 --- a/examples/osgimagesequence/osgimagesequence.cpp +++ b/examples/osgimagesequence/osgimagesequence.cpp @@ -52,6 +52,9 @@ osg::StateSet* createState() imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/negy.png")); imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/posz.png")); imageSequence->addImage(osgDB::readImageFile("Cubemap_axis/negz.png")); + + // start the image sequence playing + imageSequence->play(); #if 1 osg::Texture2D* texture = new osg::Texture2D;