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

Post your bugs and problems so we can fix them.
Riven8192
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Mar 15, 2024 9:37 pm
Contact:

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

Post 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 108 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 108 times
Post Reply

Return to “Bug Reports”