Mercurial > MadButterfly
comparison pyink/frameline.py @ 1131:3ec0ad89e443
Fix the mtraix animation.
author | wycc |
---|---|
date | Sat, 18 Dec 2010 23:50:43 +0800 |
parents | b65ac686a7c5 |
children | 6586cd10c92f |
comparison
equal
deleted
inserted
replaced
1130:37a0f6ab2f91 | 1131:3ec0ad89e443 |
---|---|
657 key = self._keys[i] | 657 key = self._keys[i] |
658 if key.left_tween is True: continue | 658 if key.left_tween is True: continue |
659 if key.right_tween is True: | 659 if key.right_tween is True: |
660 ss = rdoc.createElement("ns0:scene") | 660 ss = rdoc.createElement("ns0:scene") |
661 node.appendChild(ss) | 661 node.appendChild(ss) |
662 ss.setAttribute("start", str(key.idx+1),True) | 662 ss.setAttribute("start", str(key.idx+1)) |
663 ss.setAttribute("ref",key.ref.attribute("id"),True) | 663 ss.setAttribute("ref",key.ref.attribute("id")) |
664 ss.setAttribute("end", str(self._keys[i+1].idx+1),True) | 664 ss.setAttribute("end", str(self._keys[i+1].idx+1)) |
665 if self._keys[i].right_tween_type == self._tween_type_none: | 665 if self._keys[i].right_tween_type == self._tween_type_none: |
666 ss.setAttribute("type", "normal", True) | 666 ss.setAttribute("type", "normal") |
667 elif self._keys[i].right_tween_type == self._tween_type_move: | 667 elif self._keys[i].right_tween_type == self._tween_type_move: |
668 ss.setAttribute("type", "relocate", True) | 668 ss.setAttribute("type", "relocate") |
669 elif self._keys[i].right_tween_type == self._tween_type_shape: | 669 elif self._keys[i].right_tween_type == self._tween_type_shape: |
670 ss.setAttribute("type", "scale", True) | 670 ss.setAttribute("type", "scale") |
671 else: | 671 else: |
672 ss = rdoc.createElement("ns0:scene") | 672 ss = rdoc.createElement("ns0:scene") |
673 node.appendChild(ss) | 673 node.appendChild(ss) |
674 ss.setAttribute("start", str(key.idx+1),True) | 674 ss.setAttribute("start", str(key.idx+1)) |
675 ss.setAttribute("ref",key.ref.attribute("id"),True) | 675 ss.setAttribute("ref",key.ref.attribute("id")) |
676 ss.setAttribute("type", "normal", True) | 676 ss.setAttribute("type", "normal") |
677 | 677 |
678 | 678 |
679 ## \brief Start future drawing actions | 679 ## \brief Start future drawing actions |
680 # | 680 # |
681 def start_drawing(self): | 681 def start_drawing(self): |