From 34be5166ff5299a03077f832d325a2a55385aa3f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 20 Jun 2005 10:38:39 +0000 Subject: [PATCH] From Tom Jolly, added method for getting the number of frames. --- include/osg/Sequence | 3 +++ 1 file changed, 3 insertions(+) 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 {