@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/loader.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';
@@ -4416,7 +4416,7 @@ var CameraGestureHandlerImp = /*#__PURE__*/ function() {
4416
4416
 
4417
4417
  registerPlugin("tree", ModelTreePlugin, VFXItem, true);
4418
4418
  registerPlugin("model", ModelPlugin, VFXItem);
4419
- var version = "2.0.0-alpha.21";
4419
+ var version = "2.0.0-alpha.22";
4420
4420
  logger.info("Plugin model version: " + version + ".");
4421
4421
  if (version !== EFFECTS.version) {
4422
4422
  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!");
@@ -11863,11 +11863,8 @@ var LoaderImpl = /*#__PURE__*/ function() {
11863
11863
  });
11864
11864
  if (texData) {
11865
11865
  var newId = generateGUID();
11866
- // @ts-expect-error
11867
- var newTexData = _extends({}, texData);
11868
- newTexData.textureOptions = _extends({}, texData.textureOptions, {
11869
- id: newId
11870
- });
11866
+ var newTexData = texData.clone();
11867
+ newTexData.textureOptions.id = newId;
11871
11868
  textures.push(newTexData);
11872
11869
  textureDataMap[newId] = newTexData.textureOptions;
11873
11870
  textureIdMap[baseColorId] = newId;