Merge pull request #55922 from lawnjelly/fix_line_width

This commit is contained in:
Rémi Verschelde 2021-12-14 14:45:57 +01:00 committed by GitHub
commit 6061594aa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -476,7 +476,7 @@ void VisualServerCanvas::canvas_item_add_line(RID p_item, const Point2 &p_from,
// 90 degrees
side = Vector2(-side.y, side.x);
side *= p_width;
side *= p_width * 0.5;
points.set(0, p_from + side);
points.set(1, p_from - side);