diff options
author | wout <wout@impinc.co.uk> | 2014-01-31 18:56:27 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-01-31 18:56:27 +0100 |
commit | a7288d90d3eb6529f635259d48084f407f81ca36 (patch) | |
tree | fd7944d86c7d4c1f0c0660f7a70e4730dd4f4f55 /src | |
parent | 165ca9cc4161f26f2ee5eeefeb73cdcb1d0db08c (diff) | |
download | svg.js-a7288d90d3eb6529f635259d48084f407f81ca36.tar.gz svg.js-a7288d90d3eb6529f635259d48084f407f81ca36.zip |
Fix in poly morphing
Diffstat (limited to 'src')
-rwxr-xr-x | src/fx.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |