Browse Source

Optimising THREE.Shape.Utils.removeHoles

Nicholas Kinsey 14 years ago
parent
commit
4b144ff31b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/core/Shape.js

+ 1 - 1
src/extras/core/Shape.js

@@ -138,7 +138,7 @@ THREE.Shape.Utils = {
 			holes.push( hole );
 			*/
 
-			allpoints = allpoints.concat( hole );
+			Array.prototype.push.apply( allpoints, hole );
 
 			shortest = Number.POSITIVE_INFINITY;