@galacean/effects-plugin-model 2.4.5 → 2.4.7
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 +8 -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 +8 -6
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +8 -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.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.4.
|
|
6
|
+
* Version: v2.4.7
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -1885,12 +1885,14 @@ exports.ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
1885
1885
|
* @param data - 组件参数
|
|
1886
1886
|
*/ _proto.fromData = function fromData(data) {
|
|
1887
1887
|
RendererComponent.prototype.fromData.call(this, data);
|
|
1888
|
-
this.data = data
|
|
1889
|
-
|
|
1890
|
-
|
|
1888
|
+
this.data = _extends({}, data, {
|
|
1889
|
+
materials: []
|
|
1890
|
+
});
|
|
1891
|
+
this.data.rootBone = data.rootBone ? this.engine.findObject(data.rootBone) : undefined;
|
|
1892
|
+
this.data.geometry = this.engine.findObject(data.geometry);
|
|
1891
1893
|
if (data.materials) {
|
|
1892
1894
|
for(var i = 0; i < data.materials.length; i++){
|
|
1893
|
-
data.materials[i] = this.engine.findObject(data.materials[i]);
|
|
1895
|
+
this.data.materials[i] = this.engine.findObject(data.materials[i]);
|
|
1894
1896
|
}
|
|
1895
1897
|
}
|
|
1896
1898
|
};
|
|
@@ -13222,7 +13224,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
|
|
|
13222
13224
|
EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
|
|
13223
13225
|
/**
|
|
13224
13226
|
* 插件版本号
|
|
13225
|
-
*/ var version = "2.4.
|
|
13227
|
+
*/ var version = "2.4.7";
|
|
13226
13228
|
EFFECTS.logger.info("Plugin model version: " + version + ".");
|
|
13227
13229
|
if (version !== EFFECTS__namespace.version) {
|
|
13228
13230
|
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!");
|