paulmasson 7 лет назад
Родитель
Сommit
7851e77cef
1 измененных файлов с 6 добавлено и 0 удалено
  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;

粤ICP备19079148号