Parcourir la source

Fix Line2D UVs when using BOX end cap mode

Brian Semrau il y a 2 ans
Parent
commit
53b4d85072
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      scene/2d/line_builder.cpp

+ 2 - 0
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) {