From 6b52a46df54d180f134188d005d29119a408df95 Mon Sep 17 00:00:00 2001 From: Unity Technologies <@unity> Date: Mon, 17 May 2021 00:00:00 +0000 Subject: [PATCH] com.unity.2d.psdimporter@6.0.0-pre.3 ## [6.0.0-pre.3] - 2021-05-17 ### Changed - Update dependency version --- CHANGELOG.md | 4 ++++ Documentation~/PSD-override.md | 3 --- Editor/PSDImporter.cs | 2 +- package.json | 12 ++++++------ 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd4eb86..93afa93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [6.0.0-pre.3] - 2021-05-17 +### Changed +- Update dependency version + ## [6.0.0-pre.2] - 2021-05-14 ### Changed - Update dependency version diff --git a/Documentation~/PSD-override.md b/Documentation~/PSD-override.md index 2d749a7..81a5992 100644 --- a/Documentation~/PSD-override.md +++ b/Documentation~/PSD-override.md @@ -5,9 +5,6 @@ From Unity 2019.30f1 onwards, you can customize the PSD Importer to import files ## Example SetImporterOverride scripts ### PSDImporterOverride.cs ``` -using System.IO; -using UnityEditor.Experimental; -using UnityEditor.Experimental.AssetImporters; using UnityEngine; namespace UnityEditor.U2D.PSD diff --git a/Editor/PSDImporter.cs b/Editor/PSDImporter.cs index 6f8e0f3..61c78cc 100644 --- a/Editor/PSDImporter.cs +++ b/Editor/PSDImporter.cs @@ -469,7 +469,7 @@ void AutoGenerateSpriteSkinData(SpriteMetaData metaData) spriteMeshDataController.spriteMeshData = smd; spriteMeshDataController.OutlineFromAlpha(new OutlineGenerator(), GetDataProvider(), 0.05f, 200); spriteMeshDataController.Triangulate(new Triangulator()); - spriteMeshDataController.Subdivide(new Triangulator(), 0.25f); + spriteMeshDataController.Subdivide(new Triangulator(), 0.25f, 0); spriteMeshDataController.CalculateWeights(new BoundedBiharmonicWeightsGenerator(), null, 0.01f); spriteMeshDataController.SortTrianglesByDepth(); diff --git a/package.json b/package.json index 8685b42..addb052 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.unity.2d.psdimporter", - "version": "6.0.0-pre.2", + "version": "6.0.0-pre.3", "unity": "2021.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.\n\nDocumentation for v5.0 is currently being updated.", @@ -11,19 +11,19 @@ ], "category": "2D", "dependencies": { - "com.unity.2d.animation": "6.0.1", - "com.unity.2d.common": "6.0.0-pre.2", + "com.unity.2d.animation": "7.0.0-pre.2", + "com.unity.2d.common": "6.0.0-pre.3", "com.unity.2d.sprite": "1.0.0" }, "relatedPackages": { - "com.unity.2d.psdimporter.tests": "6.0.0-pre.2" + "com.unity.2d.psdimporter.tests": "6.0.0-pre.3" }, "upmCi": { - "footprint": "32632cb9b68960414b425492897adbf12bfe1e04" + "footprint": "690edb26ee15ca0820923327fcfe7cdce55471cc" }, "repository": { "url": "https://github.cds.internal.unity3d.com/unity/2d.git", "type": "git", - "revision": "cca7970f1452a4da6d2bfdccaf406b7980c4de6f" + "revision": "c86c46a25eac9ced170843924a73ec17abb5e115" } }