Browse Source

[csharp][unity] Fixed formatting of previous commit 3250e74 "Port sequence attachment." See #1956.

Harald Csaszar 3 years ago
parent
commit
df3ec19252

+ 1 - 2
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));
 									requiredPaths.Add(sequence.GetPath(attachment.Key, index));
 							else
 							else
 								requiredPaths.Add(attachment.Key);
 								requiredPaths.Add(attachment.Key);
-						}
-						else
+						} else
 							requiredPaths.Add(attachment.Key);
 							requiredPaths.Add(attachment.Key);
 					}
 					}
 				}
 				}

+ 1 - 1
spine-unity/Assets/Spine/Runtime/spine-unity/Utility/AttachmentCloneExtensions.cs

@@ -68,7 +68,7 @@ namespace Spine.Unity.AttachmentTools {
 			float scale = 1f / sprite.pixelsPerUnit;
 			float scale = 1f / sprite.pixelsPerUnit;
 			if (useOriginalRegionScale) {
 			if (useOriginalRegionScale) {
 				var regionAttachment = o as RegionAttachment;
 				var regionAttachment = o as RegionAttachment;
-				if (regionAttachment != null )
+				if (regionAttachment != null)
 					scale = regionAttachment.Width / regionAttachment.Region.OriginalWidth;
 					scale = regionAttachment.Width / regionAttachment.Region.OriginalWidth;
 			}
 			}
 			return o.GetRemappedClone(atlasRegion, cloneMeshAsLinked, useOriginalRegionSize, scale);
 			return o.GetRemappedClone(atlasRegion, cloneMeshAsLinked, useOriginalRegionSize, scale);