tuxpaint-pencil-sharpener/magic
Bill Kendrick 01afb5846c api->retract_undo() added to Magic API; used by Filled Polygon
New API function which rolls back the Undo buffer (which is snapshotted
upon a mousedown event ahead of calling the Magic tool's `_click()`
function.)  Dangerous; use sparingly!

Filled Polygon uses this to prevent partially-created (aka unfinished
aka incomplete) polygons -- the preview lines and control points -- from
being recorded and wasting space in the Undo history, or reappearing
upon Redo.

TODO - Other tools (e.g., Clone) would certainly benefit from this.
TODO - Needs more testing to help identify any bugs/issues introduced
by this!
TODO - Magic API docs need updating.

This is probably a sufficient solution that will make
https://sourceforge.net/p/tuxpaint/feature-requests/246/,
'"Overlay" surface in Magic API', unnecessary.
2024-06-01 01:35:50 -07:00
..
icons Filled polygon: Icon; tweaked on-screen instructions 2024-04-12 09:24:19 -07:00
magic-docs Removing Specular tool instructions 2024-05-19 23:34:12 -07:00
sounds Filled Polygon "remove" sound effect 2024-05-28 23:59:56 -07:00
src api->retract_undo() added to Magic API; used by Filled Polygon 2024-06-01 01:35:50 -07:00
.cvsignore Make plugin building on Windows work. DLLs need their dependencies resolved at 2007-08-13 06:34:04 +00:00