Преглед на файлове

allow animation export via extension (#23810)

Marcel Wiessler преди 3 години
родител
ревизия
6b11525913
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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':