mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
A tracing saved without the record of the objects its trace made was
checked against a snapshot taken when the script first got its
PluginItem. A script that reached the tracing's paths first (through
pathItems or the selection) and added artwork beside them had that
artwork in the snapshot, so tracing again or releasing the tracing
discarded it without an error.
- Before each command a script runs, the run notes the id the active
document gives its next object. An object the run made since then
counts as added to an older tracing saved without its record.
- After file.revert the note moves to the reloaded document's next id,
so objects read back from the file are not counted as added.
The snapshot check comes from 466debdc (Scripts: tracing refuses
protected art).