2
0
Эх сурвалжийг харах

Optimising THREE.TextPath::toShapes

Nicholas Kinsey 14 жил өмнө
parent
commit
40161dda38

+ 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 ++ ) {
 	for ( var p = 0, pl = paths.length; p < pl; p ++ ) {
 
 
-		shapes = shapes.concat( paths[ p ].toShapes() );
+		Array.prototype.push.apply( shapes, paths[ p ].toShapes() );
 
 
 	}
 	}