mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-07 15:55:00 +00:00
Merge 12853c022c
into 24c6281644
This commit is contained in:
commit
75d04c442f
1 changed files with 8 additions and 1 deletions
|
@ -430,7 +430,14 @@ impl Fsm for SplineToolFsmState {
|
|||
SplineToolFsmState::MergingEndpoints
|
||||
}
|
||||
(SplineToolFsmState::Drawing, SplineToolMessage::Abort) => {
|
||||
responses.add(DocumentMessage::AbortTransaction);
|
||||
if tool_data.points.len() < 2 {
|
||||
// Delete layer if it is only a single point
|
||||
responses.add(DocumentMessage::AbortTransaction);
|
||||
} else {
|
||||
// Delete the preview of the next stroke but commit the path
|
||||
delete_preview(tool_data, responses);
|
||||
responses.add(DocumentMessage::EndTransaction);
|
||||
}
|
||||
SplineToolFsmState::Ready
|
||||
}
|
||||
(_, SplineToolMessage::WorkingColorChanged) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue