Преглед на файлове

fix(RGBELoader): correct error display message (#26742)

* fix(RGBELoader): correct error display message

this.type is not an ErrorOptions compatible value so errors do not display value.

* Update RGBELoader.js

Clean up.

---------

Co-authored-by: Michael Herzog <[email protected]>
Ed Preston преди 1 година
родител
ревизия
68d93ae174
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/jsm/loaders/RGBELoader.js

+ 1 - 1
examples/jsm/loaders/RGBELoader.js

@@ -395,7 +395,7 @@ class RGBELoader extends DataTextureLoader {
 
 			default:
 
-				throw new Error( 'THREE.RGBELoader: unsupported type: ', this.type );
+				throw new Error( 'THREE.RGBELoader: Unsupported type: ' + this.type );
 				break;
 
 		}