瀏覽代碼

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

Mr.doob 12 年之前
父節點
當前提交
2dba6ba188
共有 1 個文件被更改,包括 1 次插入1 次删除
  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() ] );
 
 			}