فهرست منبع

Geometry: Clone uvs in fromBufferGeometry(). See #5567

Mr.doob 10 سال پیش
والد
کامیت
7777d08aac
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/core/Geometry.js

+ 1 - 1
src/core/Geometry.js

@@ -143,7 +143,7 @@ THREE.Geometry.prototype = {
 
 
 			if ( uvs !== undefined ) {
 			if ( uvs !== undefined ) {
 
 
-				scope.faceVertexUvs[ 0 ].push( [ tempUVs[ a ], tempUVs[ b ], tempUVs[ c ] ] );
+				scope.faceVertexUvs[ 0 ].push( [ tempUVs[ a ].clone(), tempUVs[ b ].clone(), tempUVs[ c ].clone() ] );
 
 
 			}
 			}