Bring back accidentally removed winding object fallback.

This commit is contained in:
Jürg Lehni 2017-02-04 20:50:22 +01:00
parent 69c124c36c
commit bbcfa644d9

View file

@ -774,7 +774,7 @@ PathItem.inject(new function() {
function isValid(seg) {
var winding;
return !!(seg && !seg._visited && (!operator
|| operator[(winding = seg._winding).winding]
|| operator[(winding = seg._winding || {}).winding]
// Unite operations need special handling of segments
// with a winding contribution of two (part of both
// areas), which are only valid if they are part of the