mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-28 19:57:05 -06:00
Count Repeats inside symbol art toward the Repeat instance budget
Squashed from #3788 onto main.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user