mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Bring back accidentally removed winding object fallback.
This commit is contained in:
parent
69c124c36c
commit
bbcfa644d9
1 changed files with 1 additions and 1 deletions
|
@ -774,7 +774,7 @@ PathItem.inject(new function() {
|
||||||
function isValid(seg) {
|
function isValid(seg) {
|
||||||
var winding;
|
var winding;
|
||||||
return !!(seg && !seg._visited && (!operator
|
return !!(seg && !seg._visited && (!operator
|
||||||
|| operator[(winding = seg._winding).winding]
|
|| operator[(winding = seg._winding || {}).winding]
|
||||||
// Unite operations need special handling of segments
|
// Unite operations need special handling of segments
|
||||||
// with a winding contribution of two (part of both
|
// with a winding contribution of two (part of both
|
||||||
// areas), which are only valid if they are part of the
|
// areas), which are only valid if they are part of the
|
||||||
|
|
Loading…
Reference in a new issue