diff --git a/include/osg/Sequence b/include/osg/Sequence index c1a115594..ae01f5969 100644 --- a/include/osg/Sequence +++ b/include/osg/Sequence @@ -44,6 +44,9 @@ public : /** Get time for child. */ float getTime(int frame) const; + /** Get number of frames */ + inline unsigned int getNumFrames() const { return _frameTime.size(); } + /** Interval modes. 'Loop' repeats frames 1-N; 'swing' repeats 1->N, (N-1)->1. */ enum LoopMode {