Mercurial > MadButterfly
changeset 1186:ca4e89cc464b
Update the max frame number to make sure the doRun() will executed to the last frame
author | wycc |
---|---|
date | Mon, 03 Jan 2011 08:41:31 +0800 |
parents | 9d784a987d87 |
children | 9d715956823a |
files | pyink/MBScene.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pyink/MBScene.py Fri Dec 31 13:37:45 2010 +0800 +++ b/pyink/MBScene.py Mon Jan 03 08:41:31 2011 +0800 @@ -318,9 +318,13 @@ node.removeChild(t) scenes = rdoc.createElement("ns0:scenes") node.appendChild(scenes) + self.maxframe = 0 for layer in range(0, len(self._framelines)): lobj = self._framelines[layer] self.add_scene_on_dom(lobj, scenes) + maxframe = lobj.max_frame()+1 + if self.maxframe < maxframe: + self.maxframe = maxframe pass pass pass