mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
found a better fix than the in handle = null thing
This commit is contained in:
parent
021930eadc
commit
b79bb8174f
1 changed files with 1 additions and 2 deletions
|
@ -83,8 +83,7 @@ class LineMode extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.path.lastSegment.handleOut = null; // Make sure added line isn't made curvy
|
this.path.lastSegment.handleOut = null; // Make sure added line isn't made curvy
|
||||||
this.path.lastSegment.handleIn = null; // Bug in paper.js? You need to remove the other handle too
|
this.path.add(this.hitResult.segment.point); // Add second point, which is what will move when dragged
|
||||||
this.path.add(this.hitResult.segment); // Add second point, which is what will move when dragged
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not near other path, start a new path
|
// If not near other path, start a new path
|
||||||
|
|
Loading…
Reference in a new issue