mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 11:23:43 +01:00
While the Live Paint Bucket is active, a paint or stroke command that names no objects changes only the colors the bucket paints with. The journal recorded the params as given, and the active tool is not journaled, so a replay with the Selection tool active painted the selection instead. The paint and stroke commands now take defaultsOnly: true, which keeps a command without ids, id or item to the defaults with any tool active. When the bucket routed a command, its journal entry notes defaultsOnly: true, also when the params gave false. library.use (a color, gradient or pattern) and swatch.library.add with apply note it too and pass it to the commands they run. - defaultsOnly is a bool. It is refused with ids, id or item, and in stroke.setAdvanced with brush. - With New Art Has Basic Appearance off, new-art inheritance does not replace the defaults after such a command, unless a later step of a batch selects another first object or changes its appearance. - A preview with defaultsOnly: true, and the one after it, starts from the defaults the interaction began with, and a cancel puts them back. - paint.sampleColor with a stop and defaultsOnly reads the default's gradient. Test: live_paint_bucket_commands_replay_from_the_journal_with_another_tool (engine). Docs: docs/mcp.md, the Live Paint Bucket paragraph; params text of each command.