changeset 1357:a48df5d53ddc

If the target is a svg:use, we should not update the opacity since it should use the origin value instead.
author wycc
date Tue, 15 Feb 2011 02:32:17 +0800
parents ac61d86987af
children cd0c0c7547b4
files pyink/tween.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/tween.py	Sun Feb 13 14:41:42 2011 +0800
+++ b/pyink/tween.py	Tue Feb 15 02:32:17 2011 +0800
@@ -209,6 +209,8 @@
 	pass
 
     def _update_tween_style(self, s, d, p, newobj):
+	if d.name() == 'svg:use':
+	    return
 	try:
 	    s_style = s.getAttribute('style')
 	except: