kSPMTight fix

SpritePackingMode.kSPMTight can occur outside of settingsRaw.packed == 1.

[sample file](https://cdn.discordapp.com/attachments/603359898507673632/678238497894563860/kuroyukiwedding_base_1_a)
from Dengeki Bunko: Crossing Void
This commit is contained in:
K0lb3 2020-02-20 09:42:19 +01:00 committed by GitHub
parent cffe96b409
commit 4efa5b0507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 35 deletions

View File

@ -62,7 +62,7 @@ namespace AssetStudio
spriteImage.RotateFlip(RotateFlipType.Rotate270FlipNone);
break;
}
}
//Tight
if (settingsRaw.packingMode == SpritePackingMode.kSPMTight)
{
@ -109,7 +109,6 @@ namespace AssetStudio
// ignored
}
}
}
//Rectangle
spriteImage.RotateFlip(RotateFlipType.RotateNoneFlipY);