|
@@ -204,7 +204,7 @@ THREE.CurvePath.prototype.createGeometry = function( points ) {
|
|
|
|
|
|
for ( var i = 0; i < points.length; i ++ ) {
|
|
|
|
|
|
- geometry.vertices.push( new THREE.Vector3( points[ i ].x, points[ i ].y, points[ i ].z ) );
|
|
|
+ geometry.vertices.push( new THREE.Vector3( points[ i ].x, points[ i ].y, points[ i ].z || 0) );
|
|
|
|
|
|
}
|
|
|
|