diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-11 14:40:09 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-11 14:40:09 +0100 |
commit | beab9a7cf2adf6c797e3c76e852ed7437b75a199 (patch) | |
tree | de17f7e508ef1cb1df0217355eda8b6e5c7209a9 /scene/2d | |
parent | ec552784155fe677b06f1af1e6fdb6f78cd37573 (diff) | |
parent | 53b4d850720a70026f33f32ac8a2d77561aff59d (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.cpp | 2 |
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) { |