@galacean/effects-plugin-model 2.7.0-alpha.2 → 2.7.0

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/loader.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects player model plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 飂兮
6
- * Version: v2.7.0-alpha.2
6
+ * Version: v2.7.0
7
7
  */
8
8
 
9
9
  import * as EFFECTS from '@galacean/effects';
@@ -2096,7 +2096,7 @@ var CameraGestureHandlerImp = /*#__PURE__*/ function() {
2096
2096
  registerPlugin("model", ModelPlugin, VFXItem);
2097
2097
  /**
2098
2098
  * 插件版本号
2099
- */ var version = "2.7.0-alpha.2";
2099
+ */ var version = "2.7.0";
2100
2100
  logger.info("Plugin model version: " + version + ".");
2101
2101
  if (version !== EFFECTS.version) {
2102
2102
  console.error("注意:请统一 Model 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Model plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");
@@ -2572,7 +2572,7 @@ var ModelAnimationClip = /*#__PURE__*/ function(AnimationClip) {
2572
2572
  }
2573
2573
  var _proto = ModelAnimationClip.prototype;
2574
2574
  _proto.sampleAnimation = function sampleAnimation(vfxItem, time) {
2575
- var duration = vfxItem.duration;
2575
+ var duration = this.duration;
2576
2576
  var life = Math.max(0, time) % duration;
2577
2577
  for(var _iterator = _create_for_of_iterator_helper_loose(this.positionCurves), _step; !(_step = _iterator()).done;){
2578
2578
  var curve = _step.value;
@@ -10124,7 +10124,6 @@ var LoaderImpl = /*#__PURE__*/ function() {
10124
10124
  var textureOptions = texture.textureOptions;
10125
10125
  var source = textureOptions.source;
10126
10126
  if (typeof source === "number") {
10127
- // @ts-expect-error
10128
10127
  textureOptions.source = {
10129
10128
  id: _this.images[source].id
10130
10129
  };