mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Revert "Optimising THREE.ExtrudeGeometry::addShape"
This reverts commit 285b51a1c1.
This commit is contained in:
@@ -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 );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user