Deactivate use of sameDir in Path#reduce() for now.

This commit is contained in:
Jürg Lehni 2016-01-06 00:27:11 +01:00
parent cb6afda083
commit 17d000266f

View file

@ -1035,7 +1035,9 @@ var Path = PathItem.extend(/** @lends Path# */{
// Pass true for sameDir, as we can only remove straight // Pass true for sameDir, as we can only remove straight
// curves if they point in the same direction as the next // curves if they point in the same direction as the next
// curve, not 180° in the opposite direction. // curve, not 180° in the opposite direction.
|| curve.isCollinear(curve.getNext(), true))) // NOTE: sameDir is temporarily deactivate until overlaps
// are handled properly.
|| curve.isCollinear(curve.getNext(), false)))
curve.remove(); curve.remove();
} }
return this; return this;