From 6b11525913149f71e1c140829ec5b17b3f415cac Mon Sep 17 00:00:00 2001 From: Marcel Wiessler Date: Thu, 31 Mar 2022 02:24:46 +0200 Subject: [PATCH] allow animation export via extension (#23810) --- examples/jsm/loaders/GLTFLoader.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/jsm/loaders/GLTFLoader.js b/examples/jsm/loaders/GLTFLoader.js index 099b271f0cedb3..5151ad8cad8d3b 100644 --- a/examples/jsm/loaders/GLTFLoader.js +++ b/examples/jsm/loaders/GLTFLoader.js @@ -2580,7 +2580,11 @@ class GLTFParser { break; case 'animation': - dependency = this.loadAnimation( index ); + dependency = this._invokeOne( function ( ext ) { + + return ext.loadAnimation && ext.loadAnimation( index ); + + } ); break; case 'camera':