Explorar o código

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

heqiang %!s(int64=4) %!d(string=hai) anos
pai
achega
069e6c6949

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