Explorar o código

Merge pull request #14085 from paulmasson/patch-3

Add error for new behavior of parametric geometries
Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
c63bb302c0
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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;