mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 09:36:45 +00:00
With the Selection tool, every Character and Paragraph field read its value through selected_stories, which walked the selected objects and looked up each type object's story again. With the default panels open that was 24 builds of the same list per frame. selected_stories and selected_story_texts now keep the last list, with the document (a held Weak keeps its address from being reused), its revision and a copy of the selected objects. A change to any of them builds the list again. Type objects are still resolved from the current document on every read, so the panels show the same values. Tests compare the kept list with a fresh build after an edit, a reordered or replaced selection, a selection set without a new revision, a selected group and a switch to another document at the same revision; compare what both panels draw and their field values with and without the kept list; and count one build per frame.