mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[csharp][unity] Fixed formatting of previous commit 3250e74 "Port sequence attachment." See #1956.
This commit is contained in:
parent
3250e74e26
commit
df3ec19252
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user