forked from 1b-agent/opencadstudio-upstream
fix(plot): honor wipeout draw order
This commit is contained in:
1 parent
cfbf3233be
commit
e5b84ab8de
5 files changed
+129
-37
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user