Bläddra i källkod

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

Mr.doob 10 år sedan
förälder
incheckning
7777d08aac
1 ändrade filer med 1 tillägg och 1 borttagningar
  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() ] );
 
 			}