@galacean/engine-loader 1.1.0-beta.2 → 1.1.0-beta.4

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
@@ -3595,12 +3595,12 @@ exports.GLTFAnimationParser = /*#__PURE__*/ function(GLTFParser1) {
3595
3595
  if (curve2.interpolation === engineCore.InterpolationType.CubicSpine) {
3596
3596
  keyframe2.inTangent = Array.from(output.subarray(offset2, offset2 + outputSize));
3597
3597
  offset2 += outputSize;
3598
- keyframe2.value = output.subarray(offset2, offset2 + outputSize);
3598
+ keyframe2.value = output.slice(offset2, offset2 + outputSize);
3599
3599
  offset2 += outputSize;
3600
3600
  keyframe2.outTangent = Array.from(output.subarray(offset2, offset2 + outputSize));
3601
3601
  offset2 += outputSize;
3602
3602
  } else {
3603
- keyframe2.value = output.subarray(offset2, offset2 + outputSize);
3603
+ keyframe2.value = output.slice(offset2, offset2 + outputSize);
3604
3604
  offset2 += outputSize;
3605
3605
  }
3606
3606
  curve2.addKey(keyframe2);