1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-23 05:09:10 +02:00

fixed incorrect texture offset

This commit is contained in:
Ell 2020-12-19 23:14:51 +01:00
parent c7430dd7ed
commit 294a29b46e

View file

@ -70,7 +70,7 @@ namespace MLEM.Data {
float.Parse(match.Groups[6].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.X),
float.Parse(match.Groups[7].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.Y));
}
atlas.regions.Add(name, new TextureRegion(texture, loc.OffsetCopy(texture.Position)) {
atlas.regions.Add(name, new TextureRegion(texture, loc) {
PivotPixels = piv,
Name = name
});