@galacean/engine-loader 1.2.0-alpha.11 → 1.2.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -3931,13 +3931,13 @@ exports.GLTFAnimationParser = /*#__PURE__*/ function(GLTFParser1) {
3931
3931
  break;
3932
3932
  }
3933
3933
  input[input.length - 1];
3934
- sampleDataCollection.push({
3934
+ sampleDataCollection[j] = {
3935
3935
  type: outputAccessor.type,
3936
3936
  interpolation: samplerInterpolation,
3937
3937
  input: input,
3938
3938
  output: output,
3939
3939
  outputSize: outputStride
3940
- });
3940
+ };
3941
3941
  });
3942
3942
  promises.push(promise);
3943
3943
  };
@@ -3945,11 +3945,12 @@ exports.GLTFAnimationParser = /*#__PURE__*/ function(GLTFParser1) {
3945
3945
  var glTF = context.glTF;
3946
3946
  var accessors = glTF.accessors, bufferViews = glTF.bufferViews;
3947
3947
  var channels = animationInfo.channels, samplers = animationInfo.samplers;
3948
- var sampleDataCollection = new Array();
3948
+ var len = samplers.length;
3949
+ var sampleDataCollection = new Array(len);
3949
3950
  var entities = context.get(exports.GLTFParserType.Entity);
3950
3951
  var promises = new Array();
3951
3952
  // parse samplers
3952
- for(var j = 0, m = samplers.length; j < m; j++)_loop(j);
3953
+ for(var j = 0, m = len; j < m; j++)_loop(j);
3953
3954
  promises.push(context.get(exports.GLTFParserType.Scene));
3954
3955
  return Promise.all(promises).then(function() {
3955
3956
  for(var j = 0, m = channels.length; j < m; j++){