Fix Line2D UVs when using BOX end cap mode
This commit is contained in:
parent
7722461dc5
commit
70316aab91
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue