mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 02:44:24 +01:00
Symbols: a recolored instance is noted without a nested if
This commit is contained in:
1 parent
ba919a0ea0
commit
850338909e
1 file changed
+1
-3
@@ -1236,9 +1236,7 @@ pub(super) fn symbol_adjust(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
// instance without one, or without a size, is left as it is.
|
||||
if let Some((to, step)) = &recolor {
|
||||
let fill = d.node(*id).and_then(|n| look(d, n, &mut sides)).and_then(|l| l.fill);
|
||||
if recolor_keeping_amount(d, *id, fill, to, step * w) {
|
||||
touched.insert(*id);
|
||||
}
|
||||
touched.extend(recolor_keeping_amount(d, *id, fill, to, step * w).then_some(*id));
|
||||
continue;
|
||||
}
|
||||
// Average needs the instance's own values, so it leaves an instance without a size
|
||||
|
||||
Reference in new issue
Block a user