Browse Source

Optimising THREE.TextPath::toShapes

Nicholas Kinsey 14 years ago
parent
commit
40161dda38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/core/TextPath.js

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

@@ -50,7 +50,7 @@ THREE.TextPath.prototype.toShapes = function () {
 
 	for ( var p = 0, pl = paths.length; p < pl; p ++ ) {
 
-		shapes = shapes.concat( paths[ p ].toShapes() );
+		Array.prototype.push.apply( shapes, paths[ p ].toShapes() );
 
 	}