summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-11 14:40:09 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-11 14:40:09 +0100
commitbeab9a7cf2adf6c797e3c76e852ed7437b75a199 (patch)
treede17f7e508ef1cb1df0217355eda8b6e5c7209a9 /scene/2d
parentec552784155fe677b06f1af1e6fdb6f78cd37573 (diff)
parent53b4d850720a70026f33f32ac8a2d77561aff59d (diff)
Merge pull request #73069 from brianwinterpixel/bugfix/linebuilder_box_uvs
Fix Line2D UVs when using BOX end cap mode
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/line_builder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/line_builder.cpp b/scene/2d/line_builder.cpp
index d91f6e36bb..0970325502 100644
--- a/scene/2d/line_builder.cpp
+++ b/scene/2d/line_builder.cpp
@@ -393,6 +393,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) {