소스 검색

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.' );
 
 		}