@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/alipay.mjs CHANGED
@@ -12187,11 +12187,8 @@ var LoaderImpl = /*#__PURE__*/ function() {
12187
12187
  });
12188
12188
  if (texData) {
12189
12189
  var newId = generateGUID();
12190
- // @ts-expect-error
12191
- var newTexData = _extends({}, texData);
12192
- newTexData.textureOptions = _extends({}, texData.textureOptions, {
12193
- id: newId
12194
- });
12190
+ var newTexData = texData.clone();
12191
+ newTexData.textureOptions.id = newId;
12195
12192
  textures.push(newTexData);
12196
12193
  textureDataMap[newId] = newTexData.textureOptions;
12197
12194
  textureIdMap[baseColorId] = newId;
@@ -12942,7 +12939,7 @@ function getDefaultUnlitMaterialData() {
12942
12939
 
12943
12940
  registerPlugin("tree", ModelTreePlugin, VFXItem, true);
12944
12941
  registerPlugin("model", ModelPlugin, VFXItem);
12945
- var version = "2.0.0-alpha.21";
12942
+ var version = "2.0.0-alpha.22";
12946
12943
  logger.info("Plugin model version: " + version + ".");
12947
12944
  if (version !== EFFECTS.version) {
12948
12945
  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!");