mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-28 20:51:38 +08:00
[unity] Minor cleanup, removed some useless comments.
This commit is contained in:
parent
1d5189db81
commit
80f42c65a4
@ -297,17 +297,17 @@ namespace Spine.Unity.AttachmentTools {
|
|||||||
var region = ((IHasRendererObject)newAttachment).RendererObject as AtlasRegion;
|
var region = ((IHasRendererObject)newAttachment).RendererObject as AtlasRegion;
|
||||||
int existingIndex;
|
int existingIndex;
|
||||||
if (existingRegions.TryGetValue(region, out existingIndex)) {
|
if (existingRegions.TryGetValue(region, out existingIndex)) {
|
||||||
regionIndexes.Add(existingIndex); // Store the region index for the eventual new attachment.
|
regionIndexes.Add(existingIndex);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
originalRegions.Add(region);
|
originalRegions.Add(region);
|
||||||
for (int i = 0; i < numTextureParamsToRepack; ++i) {
|
for (int i = 0; i < numTextureParamsToRepack; ++i) {
|
||||||
Texture2D regionTexture = (i == 0 ? region.ToTexture() : region.ToTexture(texturePropertyId: additionalTexturePropertyIDsToCopy[i - 1]));
|
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
|
existingRegions.Add(region, newRegionIndex);
|
||||||
regionIndexes.Add(newRegionIndex); // Store the region index for the eventual new attachment.
|
regionIndexes.Add(newRegionIndex);
|
||||||
newRegionIndex++;
|
newRegionIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user