瀏覽代碼

DRACOExporter.js : modify the error message. (#21978)

heqiang 4 年之前
父節點
當前提交
069e6c6949
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/js/exporters/DRACOExporter.js
  2. 1 1
      examples/jsm/exporters/DRACOExporter.js

+ 1 - 1
examples/js/exporters/DRACOExporter.js

@@ -35,7 +35,7 @@
 
 			if ( DracoEncoderModule === undefined ) {
 
-				throw new Error( 'THREE.DRACOExporter: required the draco_decoder to work.' );
+				throw new Error( 'THREE.DRACOExporter: required the draco_encoder to work.' );
 
 			}
 

+ 1 - 1
examples/jsm/exporters/DRACOExporter.js

@@ -34,7 +34,7 @@ class DRACOExporter {
 
 		if ( DracoEncoderModule === undefined ) {
 
-			throw new Error( 'THREE.DRACOExporter: required the draco_decoder to work.' );
+			throw new Error( 'THREE.DRACOExporter: required the draco_encoder to work.' );
 
 		}