@galacean/effects-specification 2.0.0-alpha.4 → 2.0.0-alpha.5

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/fallback.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @galacean/effects-specification
3
3
  * Description: Galacean Effects JSON Specification
4
4
  * Author: Ant Group CO., Ltd.
5
- * Version: v2.0.0-alpha.4
5
+ * Version: v2.0.0-alpha.5
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -1583,9 +1583,10 @@ function version30Migration(json) {
1583
1583
  // 兼容老版本数据中不存在textures的情况
1584
1584
  (_b = result.textures) !== null && _b !== void 0 ? _b : (result.textures = []);
1585
1585
  result.textures.forEach(function (textureOptions) {
1586
- textureOptions = __assign(__assign({}, textureOptions), {
1587
- // @ts-expect-error
1588
- id: generateGUID(), dataType: DataType.Texture });
1586
+ //@ts-expect-error
1587
+ textureOptions.id = generateGUID();
1588
+ //@ts-expect-error
1589
+ textureOptions.dataType = DataType.Texture;
1589
1590
  });
1590
1591
  if (result.textures.length < result.images.length) {
1591
1592
  for (var i = result.textures.length; i < result.images.length; i++) {