Преглед изворни кода

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