Files
vectorcraft/crates/engine
dotCooCoo bd945697e8 Scripts: a path point read before a command changes its path is stale
A PathPoint read before vc.run('path.setAnchors', ...) replaced its
path's points stayed valid, so a later write changed the replacement's
point at the same index. The object model now keeps each path whose
points the script read and checks it after every command and when a
point is used. When the path's points differ from the ones it last saw,
or the path is gone, the points read before throw `Stale path point`.
This covers any command run with vc.run, an undo, and a change that a
later command reverses. Points stay valid through the object model's
own changes to the path or to an object that holds it, such as
translate().

docs/mcp.md and the module doc state the rule.
2026-11-21 18:06:28 -08:00
..