Browse Source

Add error for new behavior

paulmasson 7 years ago
parent
commit
7851e77cef
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/geometries/ParametricGeometry.js

+ 6 - 0
src/geometries/ParametricGeometry.js

@@ -63,6 +63,12 @@ function ParametricBufferGeometry( func, slices, stacks ) {
 
 	var i, j;
 
+	if ( func.length < 3 ) {
+
+		console.error( 'Parametric geometries now require modification of a third THREE.Vector3 argument.' );
+
+	}
+
 	// generate vertices, normals and uvs
 
 	var sliceCount = slices + 1;