fix(polyline): honor global width and fill mode

This commit is contained in:
ramox81 committed 2026-08-24 09:36:57 +03:00
1 parent 7215faae44
commit 8c56c03387
6 files changed
+107 -7

No files matched your search

+2 -1
View File
@@ -25,7 +25,8 @@ pub struct Uniforms {
/// zooming inside MSPACE changes one scalar instead of re-tessellating and
/// re-uploading every dashed wire.
pub linetype_scale: f32,
/// Pads the struct to the uniform alignment required by wgpu.
/// FILLMODE toggle. Wire shaders use this slot to draw wide polylines as
/// boundary outlines when fills are disabled.
pub _pad: f32,
// ── Relative-to-eye (double-single) additions ───────────────────────────
+1
View File
@@ -3527,6 +3527,7 @@ impl Scene {
};
let mut uniforms =
Uniforms::new(&inst.camera, full_bounds, self.document.header.lineweight_display);
uniforms._pad = if self.document.header.fill_mode { 1.0 } else { 0.0 };
if self.document.header.paper_space_linetype_scaling
&& !inst.paper_sheet
&& inst.tile_idx.is_none()