@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.js CHANGED
@@ -12210,11 +12210,8 @@ var LoaderImpl = /*#__PURE__*/ function() {
12210
12210
  });
12211
12211
  if (texData) {
12212
12212
  var newId = EFFECTS.generateGUID();
12213
- // @ts-expect-error
12214
- var newTexData = _extends({}, texData);
12215
- newTexData.textureOptions = _extends({}, texData.textureOptions, {
12216
- id: newId
12217
- });
12213
+ var newTexData = texData.clone();
12214
+ newTexData.textureOptions.id = newId;
12218
12215
  textures.push(newTexData);
12219
12216
  textureDataMap[newId] = newTexData.textureOptions;
12220
12217
  textureIdMap[baseColorId] = newId;
@@ -12965,7 +12962,7 @@ function getDefaultUnlitMaterialData() {
12965
12962
 
12966
12963
  EFFECTS.registerPlugin("tree", ModelTreePlugin, EFFECTS.VFXItem, true);
12967
12964
  EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
12968
- var version = "2.0.0-alpha.21";
12965
+ var version = "2.0.0-alpha.22";
12969
12966
  EFFECTS.logger.info("Plugin model version: " + version + ".");
12970
12967
  if (version !== EFFECTS__namespace.version) {
12971
12968
  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!");