@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/alipay.js +1 -1
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +1 -1
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +1 -1
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +1 -1
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +10 -6
- package/dist/loader.mjs.map +1 -1
- package/dist/weapp.js +1 -1
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +1 -1
- package/dist/weapp.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.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.
|
|
6
|
+
* Version: v2.6.0-alpha.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -10651,6 +10651,7 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
10651
10651
|
throw new Error("Invalid interpolation type " + track.interpolation + ".");
|
|
10652
10652
|
}
|
|
10653
10653
|
if (track.path === "rotation") {
|
|
10654
|
+
var _clipData_rotationCurves;
|
|
10654
10655
|
var points = [];
|
|
10655
10656
|
var controlPoints = [];
|
|
10656
10657
|
var lineValue = [];
|
|
@@ -10689,7 +10690,7 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
10689
10690
|
controlPoints
|
|
10690
10691
|
]
|
|
10691
10692
|
];
|
|
10692
|
-
clipData.rotationCurves.push({
|
|
10693
|
+
(_clipData_rotationCurves = clipData.rotationCurves) == null ? void 0 : _clipData_rotationCurves.push({
|
|
10693
10694
|
path: path,
|
|
10694
10695
|
keyFrames: keyFrames
|
|
10695
10696
|
});
|
|
@@ -10707,6 +10708,7 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
10707
10708
|
}
|
|
10708
10709
|
var component = outputArray.length / inputArray.length;
|
|
10709
10710
|
for(var c = 0; c < component; c++){
|
|
10711
|
+
var _clipData_floatCurves;
|
|
10710
10712
|
var lineValue1 = [];
|
|
10711
10713
|
for(var i2 = 0; i2 < inputArray.length; i2++){
|
|
10712
10714
|
lineValue1.push([
|
|
@@ -10721,7 +10723,7 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
10721
10723
|
spec.ValueType.BEZIER_CURVE,
|
|
10722
10724
|
lineValue1
|
|
10723
10725
|
];
|
|
10724
|
-
clipData.floatCurves.push({
|
|
10726
|
+
(_clipData_floatCurves = clipData.floatCurves) == null ? void 0 : _clipData_floatCurves.push({
|
|
10725
10727
|
path: path1,
|
|
10726
10728
|
className: "ModelMeshComponent",
|
|
10727
10729
|
property: "morphWeights." + c,
|
|
@@ -10765,12 +10767,14 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
10765
10767
|
]
|
|
10766
10768
|
];
|
|
10767
10769
|
if (track.path === "translation") {
|
|
10768
|
-
|
|
10770
|
+
var _clipData_positionCurves;
|
|
10771
|
+
(_clipData_positionCurves = clipData.positionCurves) == null ? void 0 : _clipData_positionCurves.push({
|
|
10769
10772
|
path: path2,
|
|
10770
10773
|
keyFrames: keyFrames2
|
|
10771
10774
|
});
|
|
10772
10775
|
} else {
|
|
10773
|
-
|
|
10776
|
+
var _clipData_scaleCurves;
|
|
10777
|
+
(_clipData_scaleCurves = clipData.scaleCurves) == null ? void 0 : _clipData_scaleCurves.push({
|
|
10774
10778
|
path: path2,
|
|
10775
10779
|
keyFrames: keyFrames2
|
|
10776
10780
|
});
|
|
@@ -13201,7 +13205,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
|
|
|
13201
13205
|
registerPlugin("model", ModelPlugin, VFXItem);
|
|
13202
13206
|
/**
|
|
13203
13207
|
* 插件版本号
|
|
13204
|
-
*/ var version = "2.
|
|
13208
|
+
*/ var version = "2.6.0-alpha.0";
|
|
13205
13209
|
logger.info("Plugin model version: " + version + ".");
|
|
13206
13210
|
if (version !== EFFECTS.version) {
|
|
13207
13211
|
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!");
|