mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 18:10:01 -06:00
Fix #4938: Dynamic symbols keep per-instance appearance linked to the symbol
This commit is contained in:
@@ -771,7 +771,7 @@ mod tests {
|
||||
true => Node::new(d.alloc_id(), NodeKind::SymbolInstance { symbol: format!("S{}", k + 1), xf: Affine::IDENTITY }),
|
||||
false => square(&mut d),
|
||||
};
|
||||
d.symbols.push(Symbol { name: format!("S{k}"), art: Arc::new(art) });
|
||||
d.symbols.push(Symbol { dynamic: false, name: format!("S{k}"), art: Arc::new(art) });
|
||||
}
|
||||
let first = Node::new(d.alloc_id(), NodeKind::SymbolInstance { symbol: "S0".into(), xf: Affine::IDENTITY });
|
||||
let kind = EnvelopeKind::Warp { style: "arc".into(), bend: 30.0, h: 0.0, v: 0.0, horizontal: true };
|
||||
@@ -805,7 +805,7 @@ mod tests {
|
||||
};
|
||||
let (x, y) = (square(&mut d, 0.0), square(&mut d, 20.0));
|
||||
for (name, art) in [("A", &x), ("B", &y), ("C", &x)] {
|
||||
d.symbols.push(Symbol { name: name.into(), art: art.clone() });
|
||||
d.symbols.push(Symbol { dynamic: false, name: name.into(), art: art.clone() });
|
||||
}
|
||||
let content = ["A", "B", "C"].map(|s| Arc::new(Node::new(d.alloc_id(), NodeKind::SymbolInstance { symbol: s.into(), xf: Affine::IDENTITY })));
|
||||
let kind = EnvelopeKind::Warp { style: "arc".into(), bend: 30.0, h: 0.0, v: 0.0, horizontal: true };
|
||||
|
||||
Reference in New Issue
Block a user