Marco Fugaro 4 лет назад
Родитель
Сommit
24a2509061
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      examples/jsm/loaders/GLTFLoader.js

+ 12 - 0
examples/jsm/loaders/GLTFLoader.js

@@ -385,6 +385,18 @@ class GLTFLoader extends Loader {
 
 	}
 
+	parseAsync( data, path ) {
+
+		const scope = this;
+
+		return new Promise( function ( resolve, reject ) {
+
+			scope.parse( data, path, resolve, reject );
+
+		} );
+
+	}
+
 }
 
 /* GLTFREGISTRY */

粤ICP备19079148号