From acffd5027e42932ddcd6bd58789e9cb2bf268264 Mon Sep 17 00:00:00 2001 From: Marcel Wiessler Date: Mon, 28 Mar 2022 15:06:26 +0200 Subject: [PATCH] allow animation export via extension --- 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':