mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-05 02:29:34 -04:00
Move fix for faulty _curves list after calls to Path#reverse() to the right place.
This commit is contained in:
parent
f03283804b
commit
bd3031cdff
2 changed files with 2 additions and 2 deletions
src/path
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue