diff --git a/src/extras/geometries/ExtrudeGeometry.js b/src/extras/geometries/ExtrudeGeometry.js index 927640e0..b05a44a0 100644 --- a/src/extras/geometries/ExtrudeGeometry.js +++ b/src/extras/geometries/ExtrudeGeometry.js @@ -198,9 +198,11 @@ THREE.ExtrudeGeometry.prototype.addShape = function( shape, options ) { var contour = vertices; // vertices has all points but contour has only points of circumference for ( h = 0, hl = holes.length; h < hl; h ++ ) { - - Array.prototype.push.apply( vertices, holes[ h ] ); - + + ahole = holes[ h ]; + + vertices = vertices.concat( ahole ); + } @@ -382,7 +384,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function( shape, options ) { } holesMovements.push( oneHoleMovements ); - Array.prototype.push.apply( verticesMovements, oneHoleMovements ); + verticesMovements = verticesMovements.concat( oneHoleMovements ); }