Mercurial > MadButterfly
diff pyink/tween.py @ 1199:25e1579ed3d1
Fix bug of running animation
- Animation can not be played correctly.
- It needs the group of a scene, but it passes the scene node.
- fixed by passing scene group.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 03 Jan 2011 12:23:36 +0800 |
parents | 178b126edd2c |
children | a05c8deb6523 |
line wrap: on
line diff
--- a/pyink/tween.py Sun Jan 02 21:14:16 2011 +0800 +++ b/pyink/tween.py Mon Jan 03 12:23:36 2011 +0800 @@ -61,6 +61,7 @@ pass node = node.next() pass + # Collect all nodes in start scene start_nodes = {} node = start_scene_group.firstChild() @@ -73,7 +74,6 @@ node = node.next() pass - # Remove duplicate nodes that is not in the set of start nodes for node_ref in dup_nodes: if node_ref not in start_nodes: