From 083be57d18474b38d610b4f5ea4b591b7846169b Mon Sep 17 00:00:00 2001 From: Shuhei Aoyama Date: Wed, 27 Sep 2023 15:53:03 +0900 Subject: [PATCH] GLTFLoader: Fix to handle reject on afterRoot (#26852) --- examples/jsm/loaders/GLTFLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/jsm/loaders/GLTFLoader.js b/examples/jsm/loaders/GLTFLoader.js index c13d0d415df47a..d8f9b80462f0ba 100644 --- a/examples/jsm/loaders/GLTFLoader.js +++ b/examples/jsm/loaders/GLTFLoader.js @@ -2544,7 +2544,7 @@ class GLTFParser { assignExtrasToUserData( result, json ); - Promise.all( parser._invokeAll( function ( ext ) { + return Promise.all( parser._invokeAll( function ( ext ) { return ext.afterRoot && ext.afterRoot( result );