Refactored ImageSequence to provided a cleaner and more robust implementation
This commit is contained in:
@@ -65,7 +65,14 @@ class OSG_EXPORT ImageStream : public Image
|
||||
LOOPING
|
||||
};
|
||||
|
||||
void setLoopingMode(LoopingMode mode) { _loopingMode = mode; applyLoopingMode(); }
|
||||
void setLoopingMode(LoopingMode mode)
|
||||
{
|
||||
if (_loopingMode == mode) return;
|
||||
|
||||
_loopingMode = mode;
|
||||
applyLoopingMode();
|
||||
}
|
||||
|
||||
LoopingMode getLoopingMode() const { return _loopingMode; }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user