diff --git a/src/path/CompoundPath.js b/src/path/CompoundPath.js index 90c4ea9b..0e960e30 100644 --- a/src/path/CompoundPath.js +++ b/src/path/CompoundPath.js @@ -25,6 +25,8 @@ var CompoundPath = this.CompoundPath = PathItem.extend(/** @lends CompoundPath# _serializeFields: { pathData: '' }, + // CompoundPaths directly apply transformations to their Paths by default. + applyMatrix: true, /** * Creates a new compound path item and places it in the active layer. diff --git a/src/path/Path.js b/src/path/Path.js index 9b07863e..0ab5cae0 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -24,6 +24,8 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ segments: [], closed: false }, + // Paths directly apply transformations to the Segments by default. + applyMatrix: true, /** * Creates a new Path item and places it at the top of the active layer. @@ -300,9 +302,6 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ return true; }, - // Paths directly apply transformation matrices to the Segments by default. - applyMatrix: true, - _applyMatrix: function(matrix) { var coords = new Array(6); for (var i = 0, l = this._segments.length; i < l; i++) {