changeset 1295:71118bff7d61

CHange the wrong append to appendCHild
author wycc
date Sun, 16 Jan 2011 09:45:09 +0800
parents 082fff7e9604
children 7f0a16125eeb
files pyink/MBScene.py pyink/domview.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Sat Jan 15 23:07:29 2011 +0800
+++ b/pyink/MBScene.py	Sun Jan 16 09:45:09 2011 +0800
@@ -126,7 +126,6 @@
 	self._domviewui.tween(layer_idx, start, tween_len, tween_type)
 
 	# Create a key frame which link to the previous key frame
-	scene_group = self._domviewui.get_key_group(layer_idx, start)
 	self._domviewui.mark_key(layer_idx, frame_idx)
 	self._domviewui.clone_key_group(layer_idx, start, frame_idx)
 	self._director.show_scene(frame_idx)
--- a/pyink/domview.py	Sat Jan 15 23:07:29 2011 +0800
+++ b/pyink/domview.py	Sun Jan 16 09:45:09 2011 +0800
@@ -774,7 +774,7 @@
             dst_child.setAttribute('id', dst_child_id)
             dst_child.setAttribute('xlink:href', '#' + src_child_id)
             dst_child.setAttribute('ns0:duplicate-src', src_child_id)
-            dst_group.append(child)
+            dst_group.appendChild(dst_child)
             pass
         pass
     pass