@galacean/engine-loader 0.9.20 → 0.9.22

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
@@ -1617,12 +1617,12 @@ var AnimationParser = /*#__PURE__*/ function(Parser) {
1617
1617
  if (curve2.interpolation === engineCore.InterpolationType.CubicSpine) {
1618
1618
  keyframe2.inTangent = Array.from(output.subarray(offset2, offset2 + outputSize));
1619
1619
  offset2 += outputSize;
1620
- keyframe2.value = output.subarray(offset2, offset2 + outputSize);
1620
+ keyframe2.value = output.slice(offset2, offset2 + outputSize);
1621
1621
  offset2 += outputSize;
1622
1622
  keyframe2.outTangent = Array.from(output.subarray(offset2, offset2 + outputSize));
1623
1623
  offset2 += outputSize;
1624
1624
  } else {
1625
- keyframe2.value = output.subarray(offset2, offset2 + outputSize);
1625
+ keyframe2.value = output.slice(offset2, offset2 + outputSize);
1626
1626
  offset2 += outputSize;
1627
1627
  }
1628
1628
  curve2.addKey(keyframe2);