mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
The X, Y, Length and Angle fields ran addon.pathtools.setAnchor with each value as it was typed, outside any undo scope, so Escape left the anchor edited and an angle edit could leave one undo step per keystroke. Each field's gesture now runs in one undo scope (EditPath::Scope): Enter keeps the edit as one undo step, and Escape restores the anchor with no step. While an Angle edit runs, the field shows the handle's angle in the typed value's turn, so a typed 200 is not read back as -160, which the field took as a change made by the app and ended the edit with it kept. Points per segment takes the value its field holds after its events, so a canceled edit leaves the count Add Points uses as it was.