@galacean/effects-plugin-model 2.0.0-alpha.21 → 2.0.0-alpha.22

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/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.0.0-alpha.21
6
+ * Version: v2.0.0-alpha.22
7
7
  */
8
8
 
9
9
  'use strict';
@@ -12218,11 +12218,8 @@ var LoaderImpl = /*#__PURE__*/ function() {
12218
12218
  });
12219
12219
  if (texData) {
12220
12220
  var newId = EFFECTS.generateGUID();
12221
- // @ts-expect-error
12222
- var newTexData = _extends({}, texData);
12223
- newTexData.textureOptions = _extends({}, texData.textureOptions, {
12224
- id: newId
12225
- });
12221
+ var newTexData = texData.clone();
12222
+ newTexData.textureOptions.id = newId;
12226
12223
  textures.push(newTexData);
12227
12224
  textureDataMap[newId] = newTexData.textureOptions;
12228
12225
  textureIdMap[baseColorId] = newId;
@@ -12973,7 +12970,7 @@ function getDefaultUnlitMaterialData() {
12973
12970
 
12974
12971
  EFFECTS.registerPlugin("tree", ModelTreePlugin, EFFECTS.VFXItem, true);
12975
12972
  EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
12976
- var version = "2.0.0-alpha.21";
12973
+ var version = "2.0.0-alpha.22";
12977
12974
  EFFECTS.logger.info("Plugin model version: " + version + ".");
12978
12975
  if (version !== EFFECTS__namespace.version) {
12979
12976
  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!");