|
@@ -125,7 +125,7 @@ THREE.Path.prototype.splineThru = function( pts /*Array of Vector*/ ) {
|
|
var y0 = lastargs[ lastargs.length - 1 ];
|
|
var y0 = lastargs[ lastargs.length - 1 ];
|
|
//---
|
|
//---
|
|
var npts = [ new THREE.Vector2( x0, y0 ) ];
|
|
var npts = [ new THREE.Vector2( x0, y0 ) ];
|
|
- npts = npts.concat( pts );
|
|
|
|
|
|
+ Array.prototype.push.apply( npts, pts );
|
|
|
|
|
|
var curve = new THREE.SplineCurve( npts );
|
|
var curve = new THREE.SplineCurve( npts );
|
|
this.curves.push( curve );
|
|
this.curves.push( curve );
|