From b649f6f9abbebd1749cec554e38850ebf886dd6e Mon Sep 17 00:00:00 2001 From: Unity Technologies <@unity> Date: Mon, 22 Nov 2021 00:00:00 +0000 Subject: [PATCH] com.unity.2d.psdimporter@4.1.3 ## [4.1.3] - 2021-11-22 ### Fixed - Fixed per platform settings does not get applied in Windows platform. (Case 1379969) --- CHANGELOG.md | 5 +++++ Editor/PSDImporter.cs | 4 ++-- package.json | 12 ++++++------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5251035..6ee1117 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [4.1.3] - 2021-11-22 +### Fixed +- Fixed per platform settings does not get applied in Windows platform. (Case 1379969) + + ## [4.1.2] - 2021-10-11 ### Fixed - Fixed artifacts on images when flatten. diff --git a/Editor/PSDImporter.cs b/Editor/PSDImporter.cs index 4ed3563..74a7f5c 100644 --- a/Editor/PSDImporter.cs +++ b/Editor/PSDImporter.cs @@ -21,7 +21,7 @@ namespace UnityEditor.U2D.PSD /// ScriptedImporter to import Photoshop files /// // Version using unity release + 5 digit padding for future upgrade. Eg 2021.2 -> 21200000 - [ScriptedImporter(20300000, "psb", AllowCaching = true)] + [ScriptedImporter(20300001, "psb", AllowCaching = true)] [HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.psdimporter@latest")] [MovedFrom("UnityEditor.Experimental.AssetImporters")] public class PSDImporter : ScriptedImporter, ISpriteEditorDataProvider @@ -591,7 +591,7 @@ void EnsureSingleSpriteExist() internal TextureImporterPlatformSettings GetPlatformTextureSettings(BuildTarget buildTarget) { - var buildTargetName = TexturePlatformSettingsHelper.GetBuildTargetName(buildTarget); + var buildTargetName = TexturePlatformSettingsHelper.GetBuildTargetGroupName(buildTarget); TextureImporterPlatformSettings platformSettings = null; platformSettings = m_PlatformSettings.SingleOrDefault(x => x.name == buildTargetName && x.overridden == true); platformSettings = platformSettings ?? m_PlatformSettings.SingleOrDefault(x => x.name == TexturePlatformSettingsHelper.defaultPlatformName); diff --git a/package.json b/package.json index 041013f..12301e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.unity.2d.psdimporter", - "version": "4.1.2", + "version": "4.1.3", "unity": "2020.3", "unityRelease": "9f1", "displayName": "2D PSD Importer", @@ -12,19 +12,19 @@ ], "category": "2D", "dependencies": { - "com.unity.2d.common": "4.0.3", - "com.unity.2d.animation": "5.0.9", + "com.unity.2d.common": "4.0.4", + "com.unity.2d.animation": "5.0.10", "com.unity.2d.sprite": "1.0.0" }, "relatedPackages": { - "com.unity.2d.psdimporter.tests": "4.1.2" + "com.unity.2d.psdimporter.tests": "4.1.3" }, "upmCi": { - "footprint": "cfa9c807b576ccbafc70cbee10a358dafbd8200d" + "footprint": "20b255c3acf899002acc4b03d720c50fd0707001" }, "repository": { "url": "https://github.cds.internal.unity3d.com/unity/2d.git", "type": "git", - "revision": "66590de9de7c21359f721ef05db04d7f1753bde9" + "revision": "341b7316671d7e6703a7627f67c5fab262c4f1ac" } }