Explorar o código

DataTextureLoader: fix promise never rejected on error (#26412)

Ash Connell %!s(int64=2) %!d(string=hai) anos
pai
achega
7b8a8e7ef1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/loaders/DataTextureLoader.js

+ 1 - 1
src/loaders/DataTextureLoader.js

@@ -32,7 +32,7 @@ class DataTextureLoader extends Loader {
 
 			const texData = scope.parse( buffer );
 
-			if ( ! texData ) return;
+			if ( ! texData ) return onError();
 
 			if ( texData.image !== undefined ) {