@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.js +5 -4
- package/dist/fallback.js.map +1 -1
- package/dist/fallback.mjs +5 -4
- package/dist/fallback.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/fallback.js
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.
|
|
5
|
+
* Version: v2.0.0-alpha.5
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
'use strict';
|
|
@@ -1587,9 +1587,10 @@ function version30Migration(json) {
|
|
|
1587
1587
|
// 兼容老版本数据中不存在textures的情况
|
|
1588
1588
|
(_b = result.textures) !== null && _b !== void 0 ? _b : (result.textures = []);
|
|
1589
1589
|
result.textures.forEach(function (textureOptions) {
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1590
|
+
//@ts-expect-error
|
|
1591
|
+
textureOptions.id = generateGUID();
|
|
1592
|
+
//@ts-expect-error
|
|
1593
|
+
textureOptions.dataType = DataType.Texture;
|
|
1593
1594
|
});
|
|
1594
1595
|
if (result.textures.length < result.images.length) {
|
|
1595
1596
|
for (var i = result.textures.length; i < result.images.length; i++) {
|