mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Transfer handle when removing segment
This commit is contained in:
parent
f874b927bf
commit
08f633e7e6
1 changed files with 3 additions and 1 deletions
|
@ -910,8 +910,10 @@ PathItem.inject(new function() {
|
|||
prev._handleOut._set(0, 0);
|
||||
next._handleIn._set(0, 0);
|
||||
var curve = prev.getCurve();
|
||||
if (curve.isStraight() && curve.getLength() === 0)
|
||||
if (curve.isStraight() && curve.getLength() === 0) {
|
||||
next._handleIn.set(prev._handleIn.x, prev._handleIn.y);
|
||||
prev.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue