diff --git a/CHANGELOG.md b/CHANGELOG.md index f5c638d..f4c0804 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [8.0.5] - 2024-05-06 +### Fixed +- Fixed layers are not shown in LayerImportSettings after unselecting all layers and applying. (Case DANB-569) + ## [8.0.4] - 2023-12-14 ### Fixed - Provide custom packing override for users to override to address DANB-526. (Case DANB-526) diff --git a/Editor/PSDImporter.cs b/Editor/PSDImporter.cs index e1a429c..3811b98 100644 --- a/Editor/PSDImporter.cs +++ b/Editor/PSDImporter.cs @@ -770,6 +770,7 @@ void EnsureSingleSpriteExist() void RegisterAssets(AssetImportContext ctx, TextureGenerationOutput output) { + ctx.AddObjectToAsset("PSDImportData", m_ImportData); if ((output.sprites == null || output.sprites.Length == 0) && output.texture == null) { Debug.LogWarning(TextContent.noSpriteOrTextureImportWarning, this); @@ -802,7 +803,6 @@ void RegisterAssets(AssetImportContext ctx, TextureGenerationOutput output) RegisterSprites(ctx, output, assetNameGenerator); RegisterSkeletonAsset(ctx, output, assetName); - ctx.AddObjectToAsset("PSDImportData", m_ImportData); ctx.SetMainObject(mainAsset); } diff --git a/package.json b/package.json index 2cceda2..5a9987a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.unity.2d.psdimporter", - "version": "8.0.4", + "version": "8.0.5", "unity": "2022.2", "displayName": "2D PSD Importer", "description": "A ScriptedImporter for importing Adobe Photoshop PSB (Photoshop Big) file format. The ScriptedImporter is currently targeted for users who wants to create multi Sprite character animation using Unity 2D Animation Package.", @@ -11,12 +11,12 @@ ], "category": "2D", "dependencies": { - "com.unity.2d.animation": "9.1.0", + "com.unity.2d.animation": "9.1.1", "com.unity.2d.common": "8.0.2", "com.unity.2d.sprite": "1.0.0" }, "relatedPackages": { - "com.unity.2d.psdimporter.tests": "8.0.4" + "com.unity.2d.psdimporter.tests": "8.0.5" }, "samples": [ { @@ -26,15 +26,15 @@ } ], "_upm": { - "changelog": "### Fixed\n- Provide custom packing override for users to override to address DANB-526. (Case DANB-526)" + "changelog": "### Fixed\n- Fixed layers are not shown in LayerImportSettings after unselecting all layers and applying. (Case DANB-569)" }, "upmCi": { - "footprint": "9bdbb27ec3da5192693910c6a54d52a0ce0568db" + "footprint": "869014d7c4e1a158edf04ac17e642e1718427077" }, "documentationUrl": "https://docs.unity3d.com/Packages/com.unity.2d.psdimporter@8.0/manual/index.html", "repository": { "url": "https://github.cds.internal.unity3d.com/unity/2d.git", "type": "git", - "revision": "dfc01cb8076aa8ca74afe1ded252f91c99b080ac" + "revision": "c76edf174a772eda3d3152a9d38ad8c364cce43e" } }