Explorar o código

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

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
2dba6ba188
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/extras/geometries/CubeGeometry.js

+ 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() ] );
 
 			}