summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-01-31 18:56:27 +0100
committerwout <wout@impinc.co.uk>2014-01-31 18:56:27 +0100
commita7288d90d3eb6529f635259d48084f407f81ca36 (patch)
treefd7944d86c7d4c1f0c0660f7a70e4730dd4f4f55 /src
parent165ca9cc4161f26f2ee5eeefeb73cdcb1d0db08c (diff)
downloadsvg.js-a7288d90d3eb6529f635259d48084f407f81ca36.tar.gz
svg.js-a7288d90d3eb6529f635259d48084f407f81ca36.zip
Fix in poly morphing
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fx.js4
1 files changed, 2 insertions, 2 deletions
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)