2
0
Эх сурвалжийг харах

CubeGeometry: Cloning shared uvs as suggested by @WestLangley in #3762.

Mr.doob 12 жил өмнө
parent
commit
2dba6ba188

+ 1 - 1
src/extras/geometries/CubeGeometry.js

@@ -104,7 +104,7 @@ THREE.CubeGeometry = function ( width, height, depth, widthSegments, heightSegme
 				face.materialIndex = materialIndex;
 
 				scope.faces.push( face );
-				scope.faceVertexUvs[ 0 ].push( [ uvb, uvc, uvd ] );
+				scope.faceVertexUvs[ 0 ].push( [ uvb.clone(), uvc, uvd.clone() ] );
 
 			}