This commit is contained in:
Robert Osfield 2012-11-01 14:29:26 +00:00
parent 98e9f187b3
commit 9271b53c56

View File

@ -339,6 +339,7 @@ void ImageSequence::update(osg::NodeVisitor* nv)
int i = int(time/_timePerImage);
if ((i>=int(_images.size()) || !_images[i]))
{
i = osg::clampTo<int>(i, 0, _fileNames.size()-1);
if (_filesRequested.count(_fileNames[i])==0)
{
OSG_NOTICE<<"Requesting file, entry="<<i<<" : _fileNames[i]="<<_fileNames[i]<<std::endl;