# HG changeset patch # User wycc # Date 1290300182 -28800 # Node ID 1bda9f9e00ea96d69cbf763d8c9aef336be0d2a8 # Parent 9e7865906bfcbf87010ae7f2fb15a2534f2b705c Set the inkscape:groupmode attribute so that the inkscape will put the scene groups in the layer manager and protect it from detection. diff -r 9e7865906bfc -r 1bda9f9e00ea pyink/MBScene.py --- 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)