2
0
mirror of https://github.com/godotengine/godot.git synced 2025-04-13 01:00:35 +08:00

Merge pull request from brianwinterpixel/bugfix/linebuilder_box_uvs

Fix Line2D UVs when using BOX end cap mode
This commit is contained in:
Rémi Verschelde 2023-02-11 14:40:09 +01:00
commit beab9a7cf2
No known key found for this signature in database
GPG Key ID: C3336907360768E1

@ -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) {