瀏覽代碼

TessellateModifier: Improved error message.

Mr.doob 4 年之前
父節點
當前提交
7ac468b4e5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/js/modifiers/TessellateModifier.js

+ 2 - 2
examples/js/modifiers/TessellateModifier.js

@@ -11,9 +11,9 @@ THREE.TessellateModifier = function ( maxEdgeLength = 0.1, maxIterations = 6 ) {
 
 THREE.TessellateModifier.prototype.modify = function ( geometry ) {
 
-	if ( geometry.isBufferGeometry !== true ) {
+	if ( geometry.isGeometry === true ) {
 
-		console.warn( 'TessellateModifier: geometry is not a BufferGeometry.', geometry );
+		console.error( 'THREE.TessellateModifier no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.' );
 		return geometry;
 
 	}