forked from 1b-agent/opencadstudio-upstream
fix(polyline): honor global width and fill mode
This commit is contained in:
1 parent
7215faae44
commit
8c56c03387
6 files changed
+107
-7
No files matched your search
@@ -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 ───────────────────────────
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user