comparison pyink/MBScene.py @ 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 1d476b35dc79
comparison
equal deleted inserted replaced
1185:9d784a987d87 1186:ca4e89cc464b
316 for t in node.childList(): 316 for t in node.childList():
317 if t.name() == "ns0:scenes": 317 if t.name() == "ns0:scenes":
318 node.removeChild(t) 318 node.removeChild(t)
319 scenes = rdoc.createElement("ns0:scenes") 319 scenes = rdoc.createElement("ns0:scenes")
320 node.appendChild(scenes) 320 node.appendChild(scenes)
321 self.maxframe = 0
321 for layer in range(0, len(self._framelines)): 322 for layer in range(0, len(self._framelines)):
322 lobj = self._framelines[layer] 323 lobj = self._framelines[layer]
323 self.add_scene_on_dom(lobj, scenes) 324 self.add_scene_on_dom(lobj, scenes)
325 maxframe = lobj.max_frame()+1
326 if self.maxframe < maxframe:
327 self.maxframe = maxframe
324 pass 328 pass
325 pass 329 pass
326 pass 330 pass
327 pass 331 pass
328 pass 332 pass