2
0
Эх сурвалжийг харах

DracoLoader: remove extra redundant code (#27308)

* fix onError load

* onError

* LinearSRGBColorSpace instead of undefined

* default onError = () => {}; call onError to cleanup code;

* dracoloader: remove redundant catch
Fayelure 1 жил өмнө
parent
commit
139cbde281

+ 1 - 6
examples/jsm/loaders/DRACOLoader.js

@@ -157,12 +157,7 @@ class DRACOLoader extends Loader {
 				} );
 				} );
 
 
 			} )
 			} )
-			.then( ( message ) => this._createGeometry( message.geometry ) )
-			.catch( ( error ) => {
-
-				throw new Error( error );
-
-			} );
+			.then( ( message ) => this._createGeometry( message.geometry ) );
 
 
 		// Remove task from the task list.
 		// Remove task from the task list.
 		// Note: replaced '.finally()' with '.catch().then()' block - iOS 11 support (#19416)
 		// Note: replaced '.finally()' with '.catch().then()' block - iOS 11 support (#19416)