mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Initialize saved Eraser test brush without default reassignments
This commit is contained in:
1 parent
a7d839fae5
commit
4331eb9226
1 file changed
+8
-6
@@ -116,12 +116,14 @@ fn pressure_changes_size_but_not_flow_or_opacity_without_the_opacity_override()
|
||||
#[test]
|
||||
fn saved_user_brushes_are_restored_instead_of_replaced_by_the_new_default() {
|
||||
let mut app = app();
|
||||
let mut custom = BrushSettings::default();
|
||||
custom.size = 71.0;
|
||||
custom.opacity = 0.3;
|
||||
custom.flow = 0.2;
|
||||
custom.shape_dynamics.size = Dynamic::controlled(Control::Fade);
|
||||
custom.pressure_opacity = true;
|
||||
let custom = BrushSettings {
|
||||
size: 71.0,
|
||||
opacity: 0.3,
|
||||
flow: 0.2,
|
||||
shape_dynamics: ShapeDynamics { size: Dynamic::controlled(Control::Fade), ..Default::default() },
|
||||
pressure_opacity: true,
|
||||
..Default::default()
|
||||
};
|
||||
app.ui.tool_brushes.push((Tool::Eraser, custom.clone()));
|
||||
pick(&mut app, Tool::Eraser);
|
||||
let brush = &app.session.tools.brush;
|
||||
|
||||
Reference in new issue
Block a user