Added check to avoid doing update when the imagesequence is empty.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user