Просмотр исходного кода

BufferGeometry: Fixed bug in fromGeometry.

Mr.doob 11 лет назад
Родитель
Сommit
abf0ac8b29
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -107,7 +107,7 @@ THREE.BufferGeometry.prototype = {
 		if ( hasFaceVertexUv === true ) {
 
 			var uvs = new Float32Array( faces.length * 3 * 2 );
-			this.addAttribute( 'uvs', new THREE.BufferAttribute( uvs, 2 ) );
+			this.addAttribute( 'uv', new THREE.BufferAttribute( uvs, 2 ) );
 
 		}
 

粤ICP备19079148号