From 70316aab91696aa9e00762cb2151d1b91f65fd76 Mon Sep 17 00:00:00 2001 From: Brian Semrau Date: Fri, 10 Feb 2023 20:45:31 -0500 Subject: [PATCH] Fix Line2D UVs when using BOX end cap mode --- scene/2d/line_builder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/2d/line_builder.cpp b/scene/2d/line_builder.cpp index f61b4b2c2f0..1520e533538 100644 --- a/scene/2d/line_builder.cpp +++ b/scene/2d/line_builder.cpp @@ -407,6 +407,8 @@ void LineBuilder::build() { if (end_cap_mode == Line2D::LINE_CAP_BOX) { pos_up1 += f0 * hw * width_factor; pos_down1 += f0 * hw * width_factor; + + current_distance1 += hw * width_factor; } if (texture_mode == Line2D::LINE_TEXTURE_TILE) {