mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 14:38:34 +01:00
fixed incorrect texture offset
This commit is contained in:
parent
c7430dd7ed
commit
294a29b46e
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ namespace MLEM.Data {
|
||||||
float.Parse(match.Groups[6].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.X),
|
float.Parse(match.Groups[6].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.X),
|
||||||
float.Parse(match.Groups[7].Value, CultureInfo.InvariantCulture) - (pivotRelative ? 0 : loc.Y));
|
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,
|
PivotPixels = piv,
|
||||||
Name = name
|
Name = name
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue