Browse Source

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

Mr.doob 12 years ago
parent
commit
2dba6ba188
1 changed files with 1 additions and 1 deletions
  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() ] );
 
 			}