Files
figcraft/crates/engine/src
KameronandClaude Opus 5.5 3146ad2b2f node.reparent: index is the layer's final position (#992)
`node.reparent {ids, parent, index}` read `index` against the parent's
children as they were before the move, so within the same parent moving a
layer up one place did nothing and asking for two places moved it one.
`index` now counts the parent's children after the move, the way
`node.reorder` already does, in the same parent or a new one; several
layers still land together in their stacking order.

The layers panel was the only caller passing an index other than 0. It
drops on a gap between rows counted before the move, so it now subtracts
the dragged layers below that gap and drags behave as before.

Documents `index` in the command's params and in docs/mcp.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 11:03:08 -07:00
..
2026-10-12 02:30:25 +07:00
2026-10-12 02:30:25 +07:00
2026-10-10 12:16:56 +07:00
2026-10-14 10:31:59 +07:00
2026-10-17 16:05:22 +07:00
2026-10-13 13:36:54 +07:00
2026-10-13 13:36:54 +07:00
2026-10-13 13:36:54 +07:00