@galacean/effects-plugin-model 2.5.4 → 2.6.0-alpha.1

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.5.4
6
+ * Version: v2.6.0-alpha.1
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.5.4";
2099
+ */ var version = "2.6.0-alpha.1";
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!");
@@ -9185,6 +9185,7 @@ var JSONConverter = /*#__PURE__*/ function() {
9185
9185
  throw new Error("Invalid interpolation type " + track.interpolation + ".");
9186
9186
  }
9187
9187
  if (track.path === "rotation") {
9188
+ var _clipData_rotationCurves;
9188
9189
  var points = [];
9189
9190
  var controlPoints = [];
9190
9191
  var lineValue = [];
@@ -9223,7 +9224,7 @@ var JSONConverter = /*#__PURE__*/ function() {
9223
9224
  controlPoints
9224
9225
  ]
9225
9226
  ];
9226
- clipData.rotationCurves.push({
9227
+ (_clipData_rotationCurves = clipData.rotationCurves) == null ? void 0 : _clipData_rotationCurves.push({
9227
9228
  path: path,
9228
9229
  keyFrames: keyFrames
9229
9230
  });
@@ -9241,6 +9242,7 @@ var JSONConverter = /*#__PURE__*/ function() {
9241
9242
  }
9242
9243
  var component = outputArray.length / inputArray.length;
9243
9244
  for(var c = 0; c < component; c++){
9245
+ var _clipData_floatCurves;
9244
9246
  var lineValue1 = [];
9245
9247
  for(var i2 = 0; i2 < inputArray.length; i2++){
9246
9248
  lineValue1.push([
@@ -9255,7 +9257,7 @@ var JSONConverter = /*#__PURE__*/ function() {
9255
9257
  spec.ValueType.BEZIER_CURVE,
9256
9258
  lineValue1
9257
9259
  ];
9258
- clipData.floatCurves.push({
9260
+ (_clipData_floatCurves = clipData.floatCurves) == null ? void 0 : _clipData_floatCurves.push({
9259
9261
  path: path1,
9260
9262
  className: "ModelMeshComponent",
9261
9263
  property: "morphWeights." + c,
@@ -9299,12 +9301,14 @@ var JSONConverter = /*#__PURE__*/ function() {
9299
9301
  ]
9300
9302
  ];
9301
9303
  if (track.path === "translation") {
9302
- clipData.positionCurves.push({
9304
+ var _clipData_positionCurves;
9305
+ (_clipData_positionCurves = clipData.positionCurves) == null ? void 0 : _clipData_positionCurves.push({
9303
9306
  path: path2,
9304
9307
  keyFrames: keyFrames2
9305
9308
  });
9306
9309
  } else {
9307
- clipData.scaleCurves.push({
9310
+ var _clipData_scaleCurves;
9311
+ (_clipData_scaleCurves = clipData.scaleCurves) == null ? void 0 : _clipData_scaleCurves.push({
9308
9312
  path: path2,
9309
9313
  keyFrames: keyFrames2
9310
9314
  });