diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 02cd83b..4a2ee1b 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -166,6 +166,7 @@ /** * Creates a new Graphics object with the same values as this one. + * Note that the only the properties of the object are cloned, not its transform (position,scale,etc) * * @return {Graphics} */ @@ -188,7 +189,7 @@ // copy graphics data for (var i = 0; i < this.graphicsData.length; ++i) { - clone.graphicsData.push(this.graphicsData.clone()); + clone.graphicsData.push(this.graphicsData[i].clone()); } clone.currentPath = clone.graphicsData[clone.graphicsData.length - 1];