From Stephan Huber, "attached you'll find the modified ImageStream
and a small fix for QuicktimeImageStream to disable debug-logging :)"
This commit is contained in:
parent
8f87e14416
commit
fcafd4db06
@ -63,7 +63,7 @@ class OSG_EXPORT ImageStream : public Image
|
||||
LOOPING
|
||||
};
|
||||
|
||||
void setLoopingMode(LoopingMode mode) { _loopingMode = mode; }
|
||||
void setLoopingMode(LoopingMode mode) { _loopingMode = mode; applyLoopingMode(); }
|
||||
LoopingMode getLoopingMode() const { return _loopingMode; }
|
||||
|
||||
|
||||
@ -78,6 +78,7 @@ class OSG_EXPORT ImageStream : public Image
|
||||
virtual void update() {}
|
||||
|
||||
protected:
|
||||
virtual void applyLoopingMode() {}
|
||||
|
||||
virtual ~ImageStream() {}
|
||||
|
||||
|
@ -222,6 +222,6 @@ void QuicktimeImageStream::run()
|
||||
|
||||
|
||||
void QuicktimeImageStream::applyLoopingMode() {
|
||||
osg::notify(osg::ALWAYS) << "applying loop mode " << getLoopingMode() << std::endl;
|
||||
osg::notify(osg::INFO) << "applying loop mode " << getLoopingMode() << std::endl;
|
||||
_data->setLooping(getLoopingMode() == osg::ImageStream::LOOPING);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user