@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.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
|
|
6
|
+
* Version: v2.7.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -2215,7 +2215,7 @@ var ModelAnimationClip = /*#__PURE__*/ function(AnimationClip) {
|
|
|
2215
2215
|
}
|
|
2216
2216
|
var _proto = ModelAnimationClip.prototype;
|
|
2217
2217
|
_proto.sampleAnimation = function sampleAnimation(vfxItem, time) {
|
|
2218
|
-
var duration =
|
|
2218
|
+
var duration = this.duration;
|
|
2219
2219
|
var life = Math.max(0, time) % duration;
|
|
2220
2220
|
for(var _iterator = _create_for_of_iterator_helper_loose(this.positionCurves), _step; !(_step = _iterator()).done;){
|
|
2221
2221
|
var curve = _step.value;
|
|
@@ -11590,7 +11590,6 @@ var LoaderImpl = /*#__PURE__*/ function() {
|
|
|
11590
11590
|
var textureOptions = texture.textureOptions;
|
|
11591
11591
|
var source = textureOptions.source;
|
|
11592
11592
|
if (typeof source === "number") {
|
|
11593
|
-
// @ts-expect-error
|
|
11594
11593
|
textureOptions.source = {
|
|
11595
11594
|
id: _this.images[source].id
|
|
11596
11595
|
};
|
|
@@ -13200,7 +13199,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
|
|
|
13200
13199
|
registerPlugin("model", ModelPlugin, VFXItem);
|
|
13201
13200
|
/**
|
|
13202
13201
|
* 插件版本号
|
|
13203
|
-
*/ var version = "2.7.0
|
|
13202
|
+
*/ var version = "2.7.0";
|
|
13204
13203
|
logger.info("Plugin model version: " + version + ".");
|
|
13205
13204
|
if (version !== EFFECTS.version) {
|
|
13206
13205
|
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!");
|