Added s/getLoopingMode() to ImageStream and MPEG plugin
This commit is contained in:
@@ -16,7 +16,8 @@
|
||||
using namespace osg;
|
||||
|
||||
ImageStream::ImageStream():
|
||||
_status(PAUSED)
|
||||
_status(PAUSED),
|
||||
_loopingMode(LOOPING)
|
||||
{
|
||||
setDataVariance(DYNAMIC);
|
||||
}
|
||||
|
||||
@@ -289,8 +289,14 @@ void MpegImageStream::run()
|
||||
|
||||
if (frameNumber>=_frames)
|
||||
{
|
||||
rewind();
|
||||
//stop();
|
||||
if (getLoopingMode()==LOOPING)
|
||||
{
|
||||
rewind();
|
||||
}
|
||||
else
|
||||
{
|
||||
pause();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user