fix(plot): respect non-printing layers

Filter nested block, attribute, table, hatch, and wipeout geometry during export while preserving canvas visibility.
This commit is contained in:
Hakan Seven 2026-08-21 18:57:23 +03:00
commit 77e1f1b876
10 changed files with 140 additions and 27 deletions

View file

@ -172,7 +172,7 @@ fn plot_scene_content(
paper_wires.retain(|wire| wire.plot_visible);
model_wires.retain(|wire| wire.plot_visible);
let paper_hatches = scene.paper_plot_hatches().as_ref().clone();
let paper_wipeouts = scene.paper_canvas_wipeouts().as_ref().clone();
let paper_wipeouts = scene.paper_plot_wipeouts().as_ref().clone();
if scene.current_layout == "Model" {
let splits = crate::io::pdf_export::PlotGroupSplits {
wires: paper_wires.len(),

View file

@ -2457,6 +2457,8 @@ impl OpenCADStudio {
}
}
self.tabs[i].layers.refresh_sort();
self.tabs[i]
.scene
.invalidate_layer_dependencies(&targets);