mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-06 05:08:11 +08:00
Fix undo history getting stuck when the Select tool clicks the background to deselect (#3143)
Remove unnecessary start transaction messages Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
a2c0693038
commit
57111cff92
@@ -1449,8 +1449,6 @@ impl Fsm for SelectToolFsmState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tool_data.get_snap_candidates(document, input);
|
tool_data.get_snap_candidates(document, input);
|
||||||
|
|
||||||
responses.add(DocumentMessage::StartTransaction);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1623,8 +1621,6 @@ impl Fsm for SelectToolFsmState {
|
|||||||
SelectToolFsmState::Ready { selection }
|
SelectToolFsmState::Ready { selection }
|
||||||
}
|
}
|
||||||
(_, SelectToolMessage::SetPivot { position }) => {
|
(_, SelectToolMessage::SetPivot { position }) => {
|
||||||
responses.add(DocumentMessage::StartTransaction);
|
|
||||||
|
|
||||||
tool_data.pivot_gizmo.pivot.last_non_none_reference_point = position;
|
tool_data.pivot_gizmo.pivot.last_non_none_reference_point = position;
|
||||||
tool_data.pivot_gizmo.pivot.pinned = false;
|
tool_data.pivot_gizmo.pivot.pinned = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user