mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Shorten code statement from #1111
This commit is contained in:
parent
d1c8ed9203
commit
1264c2764c
1 changed files with 2 additions and 1 deletions
|
@ -911,7 +911,8 @@ PathItem.inject(new function() {
|
|||
next._handleIn._set(0, 0);
|
||||
var curve = prev.getCurve();
|
||||
if (curve.isStraight() && curve.getLength() === 0) {
|
||||
next._handleIn.set(prev._handleIn.x, prev._handleIn.y);
|
||||
// Transfer handleIn when removing segment:
|
||||
next._handleIn.set(prev._handleIn);
|
||||
prev.remove();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue