diff pyink/frameline.py @ 1206:1d476b35dc79

Merge and move code of tracking max frame number to MBScene_dom_monitor
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 04 Jan 2011 10:08:02 +0800
parents 213f03dbfc41 9d715956823a
children e55499f7505a
line wrap: on
line diff
--- a/pyink/frameline.py	Mon Jan 03 22:12:30 2011 +0800
+++ b/pyink/frameline.py	Tue Jan 04 10:08:02 2011 +0800
@@ -761,6 +761,14 @@
 		return key.right_tween_type
 	    pass
 	pass
+    
+    ## Get the maximum frame number in a layer(frameline)
+    # Return the frame number
+    def max_frame(self):
+	keys = self._keys
+	if not keys:
+	    return 0
+        return keys[-1].idx
 
     ## \bref Return range of blocks of conesequence frames (tweens).
     #