forked from 1b-agent/opencadstudio-upstream
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:
1 parent
eb5cbaeca0
commit
77e1f1b876
10 files changed
+140
-27
No files matched your search
@@ -1096,6 +1096,11 @@ fn tessellate_entity_inner(
|
||||
_ => None,
|
||||
})
|
||||
.unwrap_or(0);
|
||||
let ins_layer_plottable = document
|
||||
.layers
|
||||
.get(&ins.common.layer)
|
||||
.map(|layer| layer.is_plottable)
|
||||
.unwrap_or(true);
|
||||
let ip = glam::Vec3::new(
|
||||
(ins.insert_point.x) as f32,
|
||||
(ins.insert_point.y) as f32,
|
||||
@@ -1167,6 +1172,7 @@ fn tessellate_entity_inner(
|
||||
ins_lw_px,
|
||||
ins_layer,
|
||||
ins_layer_aci,
|
||||
ins_layer_plottable,
|
||||
sel,
|
||||
pslt_factor,
|
||||
view_aabb,
|
||||
@@ -1221,6 +1227,7 @@ fn tessellate_entity_inner(
|
||||
ins_pat,
|
||||
ins_lw_px,
|
||||
ins_layer,
|
||||
ins_layer_plottable,
|
||||
bg_color,
|
||||
is_xref,
|
||||
pslt_factor,
|
||||
|
||||
Reference in new issue
Block a user