mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 23:00:35 +00:00
Tests: canvas frame helper reads the selection's marks as shapes
A frame that repeats a view now draws the marks as one mesh. frame_output drops the kept marks first, so the tests that read outlines and anchors from the frame's shapes keep working.
This commit is contained in:
@@ -1621,6 +1621,9 @@ fn frame_output(app: &mut VectorcraftApp, ctx: &egui::Context) -> (Vec<Shape>, e
|
||||
s => out.push(s),
|
||||
}
|
||||
}
|
||||
// With no kept marks the frame draws the selection's marks as separate shapes, which callers
|
||||
// read. `selection_marks::tests` compares them with the kept mesh.
|
||||
app.canvas.selection_marks = Default::default();
|
||||
let raw = egui::RawInput { screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, vec2(800.0, 600.0))), ..Default::default() };
|
||||
let out = ctx.run_ui(raw, |ui| show(app, ui));
|
||||
let mut v = vec![];
|
||||
|
||||
Reference in New Issue
Block a user