Page 1 of 1

[2.0.8] rendering.draw_line with 'dash_offset' generates incorrect geometry on short lines

Posted: Mon Oct 21, 2024 8:14 pm
by Riven8192
When the line-distance in the call to rendering.draw_line(...) is very short, the code generating the dashes seems to produce both multiple line-geometries (instead of one), and these extend beyond the from/to points.

N.B.: I intentionally used translucency to see where the generated geometry overlaps.

A sequence of lines (showing as a curve) without 'dashes and gaps' (rendering is OK)
Pasted image.png
Pasted image.png (482.84 KiB) Viewed 219 times
The exact same (!) sequence of lines with 'dashes and gaps', where the small line-segment in the corner causes incorrect geometry to be rendered.
Pasted image (2).png
Pasted image (2).png (312.93 KiB) Viewed 219 times