Symbols: a recolored instance is noted without a nested if

This commit is contained in:
bflatastic committed 2026-11-19 23:04:07 +07:00
1 parent ba919a0ea0
commit 850338909e
1 file changed
+1 -3
+1 -3
View File
@@ -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