@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/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 +3 -4
- 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 +3 -4
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +3 -4
- 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.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.7.0
|
|
6
|
+
* Version: v2.7.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -2238,7 +2238,7 @@ var ModelAnimationClip = /*#__PURE__*/ function(AnimationClip) {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
var _proto = ModelAnimationClip.prototype;
|
|
2240
2240
|
_proto.sampleAnimation = function sampleAnimation(vfxItem, time) {
|
|
2241
|
-
var duration =
|
|
2241
|
+
var duration = this.duration;
|
|
2242
2242
|
var life = Math.max(0, time) % duration;
|
|
2243
2243
|
for(var _iterator = _create_for_of_iterator_helper_loose(this.positionCurves), _step; !(_step = _iterator()).done;){
|
|
2244
2244
|
var curve = _step.value;
|
|
@@ -11613,7 +11613,6 @@ var LoaderImpl = /*#__PURE__*/ function() {
|
|
|
11613
11613
|
var textureOptions = texture.textureOptions;
|
|
11614
11614
|
var source = textureOptions.source;
|
|
11615
11615
|
if (typeof source === "number") {
|
|
11616
|
-
// @ts-expect-error
|
|
11617
11616
|
textureOptions.source = {
|
|
11618
11617
|
id: _this.images[source].id
|
|
11619
11618
|
};
|
|
@@ -13223,7 +13222,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
|
|
|
13223
13222
|
EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
|
|
13224
13223
|
/**
|
|
13225
13224
|
* 插件版本号
|
|
13226
|
-
*/ var version = "2.7.0
|
|
13225
|
+
*/ var version = "2.7.0";
|
|
13227
13226
|
EFFECTS.logger.info("Plugin model version: " + version + ".");
|
|
13228
13227
|
if (version !== EFFECTS__namespace.version) {
|
|
13229
13228
|
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!");
|