Merge #1043: M3: a swapped nested instance keeps its outer main's overrides (@MortenHusted)

This commit is contained in:
bflatastic
2026-10-24 09:13:18 +07:00
3 changed files with 249 additions and 3 deletions
+3 -1
View File
@@ -772,7 +772,9 @@ most when it can't be reached).
- `instance.swap {ids?, component}` shows another component in the instances (overrides on layers
with matching names stay; property values with the same names too). Nested instances can be
swapped on their own (an override of the instance they're in).
swapped on their own (an override of the instance they're in); a swapped nested instance keeps
what its outer main overrode on matching layers as its own, so later edits of those in the main
don't reach it.
- `instance.swapAt {component, x, y}` swaps the instance at a page point: of the instances under
it (innermost first), the first showing a variant of the same component set, else the innermost
(never one inside the dropped component); only text layers keep their overrides. The Assets