mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
recolor.colors and recolor.reduce were unavailable with nothing selected, so listing a document's colors needed a select.all first, which also changed the selection. Both now take ids and read the selection when ids is left out. With nothing selected they read the objects Select All takes and the objects inside them: hidden and locked objects are left out with what they hold, also inside a group, as are the objects of hidden, locked and template layers, and in isolation mode only the isolated art is read. The selection is left unchanged. An object named in ids or selected is read with everything it holds, and an object listed twice, or listed together with a group that holds it, counts once. recolor.apply still recolors only the selection.