My sprites would have no offsets whatsoever and would be positioned correctly, like so (note that the arrow sprite is being moved. The texturebutton's textures aren't):
But when I booted up Godot today, some of them mysteriously shifted a tiny bit to the side (the Y axis was affected in some other sprites aswell)
Furthermore, when I investigated the sprite's positioning, there was no difference between yesterday's and today's positions and no floating points were involved. The
offset property was also untouched.
I did not move the parent nodes. I did not, in fact, do anything with these sprites at all, except for moving them. This seemed to apply to a lot of sprites I manually positioned today, which were also slightly offset.
I remember having this issue in previous versions of Godot, but I thought I may have done something wrong for it to appear, so I looked for a solution, but I couldn't really find one. After several days, said issue mysteriously disappeared on its own (and I had to remove the offsets from all my sprite nodes, which was painful and not fun).
And yes, this isn't just an editor-only issue. The sprites are actually shifted like this when I play the game aswell.
What could've possibly caused this?
Addendum: Just noticed this issue occurs specifically on axes where the texture's size is odd-numbered. Unaffected textures had even-numbered pixel widths and heights.