@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.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.0.0-alpha.21
6
+ * Version: v2.0.0-alpha.22
7
7
  */
8
8
 
9
9
  import * as EFFECTS from '@galacean/effects';
@@ -12195,11 +12195,8 @@ var LoaderImpl = /*#__PURE__*/ function() {
12195
12195
  });
12196
12196
  if (texData) {
12197
12197
  var newId = generateGUID();
12198
- // @ts-expect-error
12199
- var newTexData = _extends({}, texData);
12200
- newTexData.textureOptions = _extends({}, texData.textureOptions, {
12201
- id: newId
12202
- });
12198
+ var newTexData = texData.clone();
12199
+ newTexData.textureOptions.id = newId;
12203
12200
  textures.push(newTexData);
12204
12201
  textureDataMap[newId] = newTexData.textureOptions;
12205
12202
  textureIdMap[baseColorId] = newId;
@@ -12950,7 +12947,7 @@ function getDefaultUnlitMaterialData() {
12950
12947
 
12951
12948
  registerPlugin("tree", ModelTreePlugin, VFXItem, true);
12952
12949
  registerPlugin("model", ModelPlugin, VFXItem);
12953
- var version = "2.0.0-alpha.21";
12950
+ var version = "2.0.0-alpha.22";
12954
12951
  logger.info("Plugin model version: " + version + ".");
12955
12952
  if (version !== EFFECTS.version) {
12956
12953
  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!");