浏览代码

ExtrudeGeometry: Fixed #12721

Mugen87 7 年之前
父节点
当前提交
457113717a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/geometries/ExtrudeGeometry.js

+ 1 - 1
src/geometries/ExtrudeGeometry.js

@@ -747,7 +747,7 @@ ExtrudeBufferGeometry.prototype.addShape = function ( shape, options ) {
 
 
 		this.setIndex( indicesArray );
 		this.setIndex( indicesArray );
 		this.addAttribute( 'position', new Float32BufferAttribute( verticesArray, 3 ) );
 		this.addAttribute( 'position', new Float32BufferAttribute( verticesArray, 3 ) );
-		this.addAttribute( 'uv', new Float32BufferAttribute( options.arrays.uv, 2 ) );
+		this.addAttribute( 'uv', new Float32BufferAttribute( uvArray, 2 ) );
 
 
 	}
 	}