Fix Line2D UVs when using BOX end cap mode

This commit is contained in:
Brian Semrau 2023-02-10 20:45:31 -05:00 committed by Relintai
parent a29534ed66
commit 2b7327e014

View File

@ -411,6 +411,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) {