Merge pull request #55922 from lawnjelly/fix_line_width
This commit is contained in:
commit
6061594aa6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue