@galacean/effects-plugin-model 2.5.2 → 2.6.0-alpha.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/index.js 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.5.2
6
+ * Version: v2.6.0-alpha.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -10674,6 +10674,7 @@ var JSONConverter = /*#__PURE__*/ function() {
10674
10674
  throw new Error("Invalid interpolation type " + track.interpolation + ".");
10675
10675
  }
10676
10676
  if (track.path === "rotation") {
10677
+ var _clipData_rotationCurves;
10677
10678
  var points = [];
10678
10679
  var controlPoints = [];
10679
10680
  var lineValue = [];
@@ -10712,7 +10713,7 @@ var JSONConverter = /*#__PURE__*/ function() {
10712
10713
  controlPoints
10713
10714
  ]
10714
10715
  ];
10715
- clipData.rotationCurves.push({
10716
+ (_clipData_rotationCurves = clipData.rotationCurves) == null ? void 0 : _clipData_rotationCurves.push({
10716
10717
  path: path,
10717
10718
  keyFrames: keyFrames
10718
10719
  });
@@ -10730,6 +10731,7 @@ var JSONConverter = /*#__PURE__*/ function() {
10730
10731
  }
10731
10732
  var component = outputArray.length / inputArray.length;
10732
10733
  for(var c = 0; c < component; c++){
10734
+ var _clipData_floatCurves;
10733
10735
  var lineValue1 = [];
10734
10736
  for(var i2 = 0; i2 < inputArray.length; i2++){
10735
10737
  lineValue1.push([
@@ -10744,7 +10746,7 @@ var JSONConverter = /*#__PURE__*/ function() {
10744
10746
  EFFECTS.spec.ValueType.BEZIER_CURVE,
10745
10747
  lineValue1
10746
10748
  ];
10747
- clipData.floatCurves.push({
10749
+ (_clipData_floatCurves = clipData.floatCurves) == null ? void 0 : _clipData_floatCurves.push({
10748
10750
  path: path1,
10749
10751
  className: "ModelMeshComponent",
10750
10752
  property: "morphWeights." + c,
@@ -10788,12 +10790,14 @@ var JSONConverter = /*#__PURE__*/ function() {
10788
10790
  ]
10789
10791
  ];
10790
10792
  if (track.path === "translation") {
10791
- clipData.positionCurves.push({
10793
+ var _clipData_positionCurves;
10794
+ (_clipData_positionCurves = clipData.positionCurves) == null ? void 0 : _clipData_positionCurves.push({
10792
10795
  path: path2,
10793
10796
  keyFrames: keyFrames2
10794
10797
  });
10795
10798
  } else {
10796
- clipData.scaleCurves.push({
10799
+ var _clipData_scaleCurves;
10800
+ (_clipData_scaleCurves = clipData.scaleCurves) == null ? void 0 : _clipData_scaleCurves.push({
10797
10801
  path: path2,
10798
10802
  keyFrames: keyFrames2
10799
10803
  });
@@ -13224,7 +13228,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
13224
13228
  EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
13225
13229
  /**
13226
13230
  * 插件版本号
13227
- */ var version = "2.5.2";
13231
+ */ var version = "2.6.0-alpha.0";
13228
13232
  EFFECTS.logger.info("Plugin model version: " + version + ".");
13229
13233
  if (version !== EFFECTS__namespace.version) {
13230
13234
  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!");