Просмотр исходного кода

Optimising THREE.TextPath::toShapes

Nicholas Kinsey 14 лет назад
Родитель
Сommit
40161dda38
1 измененных файлов с 1 добавлено и 1 удалено
  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() );
 
 	}
 

粤ICP备19079148号