Explorar o código

ExtrudeGeometry: Fixed #12721

Mugen87 %!s(int64=8) %!d(string=hai) anos
pai
achega
457113717a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.addAttribute( 'position', new Float32BufferAttribute( verticesArray, 3 ) );
-		this.addAttribute( 'uv', new Float32BufferAttribute( options.arrays.uv, 2 ) );
+		this.addAttribute( 'uv', new Float32BufferAttribute( uvArray, 2 ) );
 
 	}