mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 12:35:48 -05:00
`PathItems.index()` with a number went straight to `items_doc`, which refuses every compound-path-scoped `PathItems` so that creating paths there stays unavailable. Its siblings (`[n]`, `getByName`, `length`, `removeAll`) already dispatch scoped collections to the layer handlers first, but `index` did not, so `compoundPathItems[0].pathItems.index(0)` threw "creating paths in a compound path is not available yet". Route a scoped `index` to `scoped_index` like the other lookups; the guard now only stops real creation.