Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
## [9.0.1] - 2023-08-15
### Fixed
- Fixed case where PSDImporter does not support the PVRTC compression format for the iOS platform. (Case DANB-500)
  • Loading branch information
Unity Technologies committed Aug 15, 2023
1 parent a5f3ece commit 77504d7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## [9.0.1] - 2023-08-15
### Fixed
- Fixed case where PSDImporter does not support the PVRTC compression format for the iOS platform. (Case DANB-500)

## [9.0.0] - 2023-02-23
### Fixed
Expand Down
7 changes: 5 additions & 2 deletions Editor/PSDImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,10 @@ TextureGenerationOutput ImportFromLayers(AssetImportContext ctx)

var layerIndex = new List<int>();
var spriteNameHash = new UniqueNameGenerator();


var platformSettings = TextureImporterUtilities.GetPlatformTextureSettings(ctx.selectedBuildTarget, in m_PlatformSettings);
bool requireSquarePOT = (TextureImporterFormat.PVRTC_RGB2 <= platformSettings.format && platformSettings.format <= TextureImporterFormat.PVRTC_RGBA4);

var oldPsdLayers = GetPSDLayers();
List<PSDLayer> psdLayers = null;
try
Expand Down Expand Up @@ -595,7 +598,7 @@ TextureGenerationOutput ImportFromLayers(AssetImportContext ctx)
}
}

ImagePacker.Pack(layerBuffers.ToArray(), layerWidth.ToArray(), layerHeight.ToArray(), m_Padding, m_SpriteSizeExpand, out outputImageBuffer, out int width, out int height, out RectInt[] spriteData, out Vector2Int[] uvTransform);
ImagePacker.Pack(layerBuffers.ToArray(), layerWidth.ToArray(), layerHeight.ToArray(), m_Padding, m_SpriteSizeExpand, out outputImageBuffer, out int width, out int height, out RectInt[] spriteData, out Vector2Int[] uvTransform, requireSquarePOT);

var packOffsets = new Vector2[spriteData.Length];
for (var i = 0; i < packOffsets.Length; ++i)
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.unity.2d.psdimporter",
"version": "9.0.0",
"version": "9.0.1",
"unity": "2023.1",
"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.",
Expand All @@ -11,22 +11,22 @@
],
"category": "2D",
"dependencies": {
"com.unity.2d.common": "9.0.0",
"com.unity.2d.common": "9.0.2",
"com.unity.2d.sprite": "1.0.0"
},
"relatedPackages": {
"com.unity.2d.psdimporter.tests": "9.0.0"
"com.unity.2d.psdimporter.tests": "9.0.1"
},
"_upm": {
"changelog": "### Fixed\n- Fixed an issue where warning logs in the console would get cut short due to invalid characters in layer names."
"changelog": "### Fixed\n- Fixed case where PSDImporter does not support the PVRTC compression format for the iOS platform. (Case DANB-500)"
},
"upmCi": {
"footprint": "8f637153f11248fa2596796616076d6552ef5b49"
"footprint": "a0d6f3e508ae71cd512a92da6ea47a0df9be61eb"
},
"documentationUrl": "https://docs.unity3d.com/Packages/[email protected]/manual/index.html",
"repository": {
"url": "https://github.cds.internal.unity3d.com/unity/2d.git",
"type": "git",
"revision": "921f93408bc912dafbc669a5d5ff55b7b04e7b3e"
"revision": "b0f3a8f8d95618bb6a299742c1bbd4e96699180b"
}
}

0 comments on commit 77504d7

Please sign in to comment.