Godot version: 3.2.1
OS/device including version: Windows 10
Issue description: Touchscreen buttons shapes are not centered respect to their texture even if the option "Shape centered" is checked. It seems that the shape is shifted on the right bottom side of the texture.
Steps to reproduce:
Minimal reproduction project:
TouchButtonsTest.zip
Could confirm with the attached MRP.
The problem comes because the (correct) transform used for drawing:
https://github.com/godotengine/godot/blob/1c23a0cc7f879774f56404378db1bf86979e42d1/scene/2d/touch_screen_button.cpp#L140-L142
Is not the same one as the one used when checking if the point is inside the shape:
https://github.com/godotengine/godot/blob/1c23a0cc7f879774f56404378db1bf86979e42d1/scene/2d/touch_screen_button.cpp#L265-L266
Specifically, notice the lack of texture->get_size() in the second snippet.
Fixed by e253451a5b (cherry-picked from #38542).
Most helpful comment
Fixed by e253451a5b (cherry-picked from #38542).