feat(display): add model lineweight scale

This commit is contained in:
Hakan Seven committed 2026-09-02 23:03:04 +03:00
1 parent edbc4d8ff8
commit 76bdab1e5b
11 files changed
+66 -19

No files matched your search

+3 -1
View File
@@ -3847,7 +3847,9 @@ impl Scene {
full_bounds,
self.document.header.lineweight_display || display_plot_lineweights,
);
if self.current_layout != "Model" {
if self.current_layout == "Model" {
uniforms.lineweight_scale = self.model_lineweight_scale;
} else {
let paper_per_pixel = 2.0 * self.camera.borrow().ortho_size() / canvas.1.max(1.0);
let paper_units_per_mm = self.paper_space_unit_factor() as f32;
uniforms.lineweight_scale = paper_units_per_mm / paper_per_pixel / MM_TO_PX;