From 033c59679592ec0fd1d6921b0cf3c12b4b063206 Mon Sep 17 00:00:00 2001 From: Shuhei Aoyama Date: Tue, 26 Sep 2023 21:45:47 +0900 Subject: [PATCH] GLTFLoader: Fix to handle reject on afterRoot --- 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 );