mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 15:52:52 +00:00
With Real-time Drawing off, a tool stores its latest preview and applies it only when the drag is released. A command that ends the drag first (Undo, Redo, a filter that calls commands, a plug-in command that calls commands, and the other callers of settle_interaction) committed the interaction without that preview, so the drag was dropped: Undo then took back the step before it, and a calling filter was given the objects where they were before the drag. settle_interaction now applies such a preview first, as the tool's own commit does, and cancels the drag when the preview fails. The re-prepare of a calling filter's input after settling is now reached, and tests cover it at both plugin.run and plugin.<plug-in>.<command>.