Преглед изворни кода

Map more surfaces as horizontal-like (#21875)

Kai / Codrakai (he/him) пре 4 година
родитељ
комит
71c8b3f6cb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/geometries/ExtrudeGeometry.js

+ 1 - 1
src/geometries/ExtrudeGeometry.js

@@ -731,7 +731,7 @@ const WorldUVGenerator = {
 		const d_y = vertices[ indexD * 3 + 1 ];
 		const d_z = vertices[ indexD * 3 + 2 ];
 
-		if ( Math.abs( a_y - b_y ) < 0.01 ) {
+		if ( Math.abs( a_y - b_y ) < Math.abs( a_x - b_x ) ) {
 
 			return [
 				new Vector2( a_x, 1 - a_z ),