Keep Pencil default guard independent of sibling presets

This commit is contained in:
Terra854 committed 2026-12-02 22:22:35 +08:00
1 parent ced0778a22
commit facfd0ace5
1 file changed
+1 -1
@@ -66,7 +66,7 @@ fn reset_all_restores_the_saved_pencil_without_changing_other_tools() {
assert_defaults(&app.session.tools.brush);
let current = BrushSettings::default();
for tool in Tool::ALL.iter().copied().filter(|tool| !matches!(tool, Tool::Pencil | Tool::ColorReplacement)) {
for tool in [Tool::BackgroundEraser, Tool::Healing, Tool::CloneStamp] {
let brush = crate::paint_mouse::fresh_brush(tool, &current);
assert_eq!(brush.shape_dynamics, ShapeDynamics::default(), "{tool:?}");
assert_eq!(brush.transfer, current.transfer, "{tool:?}");