Browse Source

fix createGeometry ignoring point.z

Alvaro Gil 13 years ago
parent
commit
fddb8ca03a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/core/CurvePath.js

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

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