changeset 982:1bda9f9e00ea

Set the inkscape:groupmode attribute so that the inkscape will put the scene groups in the layer manager and protect it from detection.
author wycc
date Sun, 21 Nov 2010 08:43:02 +0800
parents 9e7865906bfc
children ee31add87843
files pyink/MBScene.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Sat Nov 20 23:31:02 2010 +0800
+++ b/pyink/MBScene.py	Sun Nov 21 08:43:02 2010 +0800
@@ -259,9 +259,10 @@
 	txt.setAttribute("height","100",True)
 	txt.setAttribute("style","fill:#ff00",True)
 	ns.appendChild(txt)
-	gid = self.newID()
+	gid = self.last_line.node.label()+self.newID()
 	self.ID[gid]=1
 	ns.setAttribute("id",gid,True)
+	ns.setAttribute("inkscape:groupmode","layer",True)
 	self.last_line.node.repr.appendChild(ns)
 	print 'Add key ', x
 	self.last_line.add_keyframe(x,ns)