From df3ec19252da330d3e3e148091052414edaece9d Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 3 Nov 2021 15:38:41 +0100 Subject: [PATCH] [csharp][unity] Fixed formatting of previous commit 3250e74 "Port sequence attachment." See #1956. --- .../Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs | 3 +-- .../Runtime/spine-unity/Utility/AttachmentCloneExtensions.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs index 776718905..c5e0b4365 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Utility/AssetUtility.cs @@ -183,8 +183,7 @@ namespace Spine.Unity.Editor { requiredPaths.Add(sequence.GetPath(attachment.Key, index)); else requiredPaths.Add(attachment.Key); - } - else + } else requiredPaths.Add(attachment.Key); } } diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AttachmentCloneExtensions.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AttachmentCloneExtensions.cs index cb3eb0646..601af1faf 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AttachmentCloneExtensions.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AttachmentCloneExtensions.cs @@ -68,7 +68,7 @@ namespace Spine.Unity.AttachmentTools { float scale = 1f / sprite.pixelsPerUnit; if (useOriginalRegionScale) { var regionAttachment = o as RegionAttachment; - if (regionAttachment != null ) + if (regionAttachment != null) scale = regionAttachment.Width / regionAttachment.Region.OriginalWidth; } return o.GetRemappedClone(atlasRegion, cloneMeshAsLinked, useOriginalRegionSize, scale);