Browse Source

Merge pull request #14085 from paulmasson/patch-3

Add error for new behavior of parametric geometries
Mr.doob 7 years ago
parent
commit
c63bb302c0
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( 'THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.' );
+
+	}
+
 	// generate vertices, normals and uvs
 
 	var sliceCount = slices + 1;