From a7288d90d3eb6529f635259d48084f407f81ca36 Mon Sep 17 00:00:00 2001 From: wout Date: Fri, 31 Jan 2014 18:56:27 +0100 Subject: Fix in poly morphing --- src/fx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fx.js b/src/fx.js index b779b40..c6bef96 100755 --- a/src/fx.js +++ b/src/fx.js @@ -36,10 +36,10 @@ SVG.extend(SVG.FX, { akeys.push(key) /* make sure morphable elements are scaled, translated and morphed all together */ - if (element.morphArray && akeys.indexOf('points') > -1) { + if (element.morphArray && (fx._plot || akeys.indexOf('points') > -1)) { /* get destination */ var box - , p = new element.morphArray(fx._plot || element.array) + , p = new element.morphArray(fx._plot || fx.attrs.points || element.array) /* add size */ if (fx._size) p.size(fx._size.width.to, fx._size.height.to) -- cgit v1.2.3