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

This commit is contained in:
Harald Csaszar 2021-11-03 15:38:41 +01:00
parent 3250e74e26
commit df3ec19252
2 changed files with 2 additions and 3 deletions

View File

@ -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);
} }
} }

View File

@ -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);