mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Keep Pencil default guard independent of sibling presets
This commit is contained in:
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, ¤t);
|
||||
assert_eq!(brush.shape_dynamics, ShapeDynamics::default(), "{tool:?}");
|
||||
assert_eq!(brush.transfer, current.transfer, "{tool:?}");
|
||||
|
||||
Reference in new issue
Block a user