Mercurial > MadButterfly
comparison pyink/frameline.py @ 1161:a7faab54e8f8
Fix broken of running animation
- Running animation is stop automatically after a certain time.
- It is 300ms according MBScene._updateUI().
- It is caused by notification of changing DOM tree. The
notification handlers would call MBScene.updateUI() to update
framelines and buttons.
- MBScene.updateUI() would call MBScene.show() after 300ms,
MBScene.show() calls MBScene.parseScene() in turn.
- MBScene.parseScene() would remove duplicate group that is using
by code of running animation, MBScene.doRunNext(). It make
running animation stop.
- fixed by setting MBScene.lockui when a running animation is started
or stoped.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 28 Dec 2010 13:35:34 +0800 |
parents | 1d1f2a1e43f6 |
children | c23593881507 |
comparison
equal
deleted
inserted
replaced
1160:1a699dc00fa3 | 1161:a7faab54e8f8 |
---|---|
708 if key.right_tween: | 708 if key.right_tween: |
709 next_key = self._keys[pos + 1] | 709 next_key = self._keys[pos + 1] |
710 block = (key.idx, next_key.idx, key.right_tween_type) | 710 block = (key.idx, next_key.idx, key.right_tween_type) |
711 elif not key.left_tween: | 711 elif not key.left_tween: |
712 block = (key.idx, key.idx, 0) | 712 block = (key.idx, key.idx, 0) |
713 pass | 713 else: |
714 continue | |
714 blocks.append(block) | 715 blocks.append(block) |
715 pass | 716 pass |
716 return blocks | 717 return blocks |
717 | 718 |
718 def get_frame_block(self, idx): | 719 def get_frame_block(self, idx): |