@@ -186,7 +186,17 @@ THREE.BasisTextureLoader.prototype = Object.assign( Object.create( THREE.Loader.
} );
texturePending
- .finally( () => {
+ .then( () => {
+
+ if ( worker && taskID ) {
+ worker._taskLoad -= taskCost;
+ delete worker._callbacks[ taskID ];
+ }
+ } )
+ .catch( () => {
if ( worker && taskID ) {
@@ -198,7 +198,18 @@ THREE.DRACOLoader.prototype = Object.assign( Object.create( THREE.Loader.prototy
// Remove task from the task list.
geometryPending
+ this._releaseTask( worker, taskID );
+ // this.debug();
@@ -200,7 +200,17 @@ BasisTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ),
@@ -205,7 +205,18 @@ DRACOLoader.prototype = Object.assign( Object.create( Loader.prototype ), {