diff pyink/tween.py @ 1156:ad9c44a08645

If an object does not exist in the destination group, we should duplicate it.
author wycc
date Mon, 27 Dec 2010 22:57:52 +0800
parents 71c72e8d6755
children 3a891dccabd8
line wrap: on
line diff
--- a/pyink/tween.py	Mon Dec 27 22:54:37 2010 +0800
+++ b/pyink/tween.py	Mon Dec 27 22:57:52 2010 +0800
@@ -7,7 +7,7 @@
     TWEEN_TYPE_NORMAL = 0
     TWEEN_TYPE_RELOCATE = 1
     TWEEN_TYPE_SCALE = 2
-    
+
     def __init__(self,doc,dom):
         self.document = doc
 	self.dom = dom
@@ -78,6 +78,9 @@
 	    try:
 		stop_node = stop_nodes[start_node_id]
 	    except KeyError:
+		self.updateTweenObject(duplicate_group, tween_type,
+				       start_node, start_node,
+				       percent, dup_node)
 		start_node = start_node.next()
 		continue