Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
1198:164076156e04 | 1199:25e1579ed3d1 |
---|---|
59 stop_nodes[node_label] = node | 59 stop_nodes[node_label] = node |
60 except: | 60 except: |
61 pass | 61 pass |
62 node = node.next() | 62 node = node.next() |
63 pass | 63 pass |
64 | |
64 # Collect all nodes in start scene | 65 # Collect all nodes in start scene |
65 start_nodes = {} | 66 start_nodes = {} |
66 node = start_scene_group.firstChild() | 67 node = start_scene_group.firstChild() |
67 while node: | 68 while node: |
68 try: | 69 try: |
70 start_nodes[node_label] = node | 71 start_nodes[node_label] = node |
71 except: | 72 except: |
72 pass | 73 pass |
73 node = node.next() | 74 node = node.next() |
74 pass | 75 pass |
75 | |
76 | 76 |
77 # Remove duplicate nodes that is not in the set of start nodes | 77 # Remove duplicate nodes that is not in the set of start nodes |
78 for node_ref in dup_nodes: | 78 for node_ref in dup_nodes: |
79 if node_ref not in start_nodes: | 79 if node_ref not in start_nodes: |
80 node = dup_nodes[node_ref] | 80 node = dup_nodes[node_ref] |