Added check to avoid doing update when the imagesequence is empty.

This commit is contained in:
Robert Osfield
2012-11-08 14:15:59 +00:00
parent 014f13f774
commit b51bbaa406

View File

@@ -254,6 +254,9 @@ void ImageSequence::update(osg::NodeVisitor* nv)
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
// if imageDataList is empty then there is nothing update can do.
if (_imageDataList.empty()) return;
osg::NodeVisitor::ImageRequestHandler* irh = nv->getImageRequestHandler();
const osg::FrameStamp* fs = nv->getFrameStamp();