From 378da2f68dda01a59591102bc1a42e3c37eb5e98 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Mon, 27 Jun 2011 18:18:41 -0400 Subject: Extensions. Interpolate Path. use transform elements (Bug 518768) Fixed bugs: - https://launchpad.net/bugs/518768 (bzr r10378) --- share/extensions/interp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/extensions/interp.py b/share/extensions/interp.py index 8ca7f6aeb..9e10f30d8 100755 --- a/share/extensions/interp.py +++ b/share/extensions/interp.py @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ''' -import inkex, cubicsuperpath, simplestyle, copy, math, bezmisc +import inkex, cubicsuperpath, simplestyle, copy, math, bezmisc, simpletransform def numsegs(csp): return sum([len(p)-1 for p in csp]) @@ -125,6 +125,9 @@ class Interp(inkex.Effect): if node.tag ==inkex.addNS('path','svg'): paths[id] = cubicsuperpath.parsePath(node.get('d')) styles[id] = simplestyle.parseStyle(node.get('style')) + trans = node.get('transform') + if trans: + simpletransform.applyTransformToPath(simpletransform.parseTransform(trans), paths[id]) else: self.options.ids.remove(id) -- cgit v1.2.3