forked from 1b-agent/opencadstudio-upstream
fix(hatch): render weighted pattern strokes
Show styled boundaries only while selected.\n\nRefs #821
This commit is contained in:
1 parent
81de94fdbb
commit
fd801fac1b
6 files changed
+55
-23
No files matched your search
@@ -286,7 +286,12 @@ impl TextureHatch {
|
||||
texels.push([angle_r.cos(), angle_r.sin(), fam.x0, fam.y0]);
|
||||
texels.push([fam.dx, fam.dy, fam.dy, fam.dx]);
|
||||
// Counts as exact f32 (small integers → no denormal/bitcast risk).
|
||||
texels.push([0.0, period, n_dashes as f32, dash_rel as f32]);
|
||||
texels.push([
|
||||
model.line_weight_px.max(1.0),
|
||||
period,
|
||||
n_dashes as f32,
|
||||
dash_rel as f32,
|
||||
]);
|
||||
n_families += 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user