Count Repeats inside symbol art toward the Repeat instance budget

Squashed from #3788 onto main.
This commit is contained in:
bflatastic
2026-10-24 02:06:39 +07:00
parent 52d93cfce5
commit 2e572c7805
22 changed files with 231 additions and 135 deletions
+2 -1
View File
@@ -737,7 +737,8 @@ fn repeat_expand(s: &mut Session, _: &Value) -> Result<Value> {
/// instance node gets a fresh id.
fn expand_repeat(d: &mut Document, r: NodeId) -> Result<()> {
let Some(n) = d.node(r).cloned() else { return Ok(()) };
let mut g = vectorcraft_doc::live::expanded_group(&n, None);
let hooks = vectorcraft_doc::live::Hooks { symbols: Some(d), ..Default::default() };
let mut g = vectorcraft_doc::live::expanded_group_hooks(&n, hooks);
if let Some(ch) = g.children_mut() {
for c in ch.iter_mut() {
fix_ids(d, Arc::make_mut(c));