From 80f42c65a4ffb747e0e0c69bfb5e025e4cbbda13 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 2 Dec 2019 17:43:48 +0100 Subject: [PATCH] [unity] Minor cleanup, removed some useless comments. --- .../Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs index 807ba5c62..b053891d6 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AtlasUtilities.cs @@ -297,17 +297,17 @@ namespace Spine.Unity.AttachmentTools { var region = ((IHasRendererObject)newAttachment).RendererObject as AtlasRegion; int existingIndex; if (existingRegions.TryGetValue(region, out existingIndex)) { - regionIndexes.Add(existingIndex); // Store the region index for the eventual new attachment. + regionIndexes.Add(existingIndex); } else { originalRegions.Add(region); for (int i = 0; i < numTextureParamsToRepack; ++i) { Texture2D regionTexture = (i == 0 ? region.ToTexture() : region.ToTexture(texturePropertyId: additionalTexturePropertyIDsToCopy[i - 1])); - texturesToPackAtParam[i].Add(regionTexture); // Add the texture to the PackTextures argument + texturesToPackAtParam[i].Add(regionTexture); } - existingRegions.Add(region, newRegionIndex); // Add the region to the dictionary of known regions - regionIndexes.Add(newRegionIndex); // Store the region index for the eventual new attachment. + existingRegions.Add(region, newRegionIndex); + regionIndexes.Add(newRegionIndex); newRegionIndex++; }