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

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 година
родител
ревизия
139cbde281
променени са 1 файла, в които са добавени 1 реда и са изтрити 6 реда
  1. 1 6
      examples/jsm/loaders/DRACOLoader.js

+ 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.
 		// Note: replaced '.finally()' with '.catch().then()' block - iOS 11 support (#19416)