mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Do not reduce linear curves with handles defined.
This commit is contained in:
parent
26e35322a4
commit
d7fb5cd512
1 changed files with 1 additions and 1 deletions
|
@ -1021,7 +1021,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
for (var i = curves.length - 1; i >= 0; i--) {
|
||||
var curve = curves[i],
|
||||
next;
|
||||
if (curve.isLinear() && (curve.getLength() === 0
|
||||
if (!curve.hasHandles() && (curve.getLength() === 0
|
||||
|| (next = curve.getNext()) && curve.isCollinear(next)))
|
||||
curve.remove();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue