Преглед изворни кода

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 ) {
 
-				scope.faceVertexUvs[ 0 ].push( [ tempUVs[ a ], tempUVs[ b ], tempUVs[ c ] ] );
+				scope.faceVertexUvs[ 0 ].push( [ tempUVs[ a ].clone(), tempUVs[ b ].clone(), tempUVs[ c ].clone() ] );
 
 			}