fix(plot): honor wipeout draw order

This commit is contained in:
Hakan Seven committed 2026-08-22 15:33:43 +03:00
1 parent cfbf3233be
commit e5b84ab8de
5 files changed
+129 -37

No files matched your search

+2 -2
View File
@@ -354,7 +354,7 @@ impl Scene {
/// needs the equivalent paper-space geometry explicitly.
pub fn viewport_plot_fills(
&self,
) -> (Vec<WireModel>, Vec<HatchModel>, Vec<HatchModel>) {
) -> (Vec<(WireModel, f32)>, Vec<HatchModel>, Vec<HatchModel>) {
use acadrust::entities::Viewport;
use model::hatch_model::HatchPattern;
@@ -478,7 +478,7 @@ impl Scene {
wire.aci = hatch.aci;
wire.line_weight_px = hatch.line_weight_px;
wire.aabb = aabb;
pattern_wires.push(wire);
pattern_wires.push((wire, hatch.draw_depth));
}
continue;
}