diff --git a/src/path/Path.js b/src/path/Path.js index 7a050faf..42c67503 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1109,6 +1109,8 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ segment._handleOut = handleIn; segment._index = i; } + // Clear curves since it all has changed. + delete this._curves; // Flip clockwise state if it's defined if (this._clockwise !== undefined) this._clockwise = !this._clockwise; diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index c0813c86..0ae15100 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -114,13 +114,11 @@ PathItem.inject(new function() { var children = path.children, i, len; for (i = 0, len = children.length; i < len; i++) { children[i].reverse(); - children[i]._curves = null; } baseWinding = children[0].clockwise; } else { path.reverse(); baseWinding = path.clockwise; - path._curves = null; } return baseWinding; }