Przeglądaj źródła

allow animation export via extension (#23810)

Marcel Wiessler 4 lat temu
rodzic
commit
6b11525913
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      examples/jsm/loaders/GLTFLoader.js

+ 5 - 1
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':

粤ICP备19079148号