mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Fix Line2D UVs when using BOX end cap mode
This commit is contained in:
@@ -393,6 +393,8 @@ void LineBuilder::build() {
|
|||||||
if (end_cap_mode == Line2D::LINE_CAP_BOX) {
|
if (end_cap_mode == Line2D::LINE_CAP_BOX) {
|
||||||
pos_up1 += f0 * hw * width_factor;
|
pos_up1 += f0 * hw * width_factor;
|
||||||
pos_down1 += f0 * hw * width_factor;
|
pos_down1 += f0 * hw * width_factor;
|
||||||
|
|
||||||
|
current_distance1 += hw * width_factor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (texture_mode == Line2D::LINE_TEXTURE_TILE) {
|
if (texture_mode == Line2D::LINE_TEXTURE_TILE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user