Help with pixel deforming when changing scale

4.5.1 stable

Question

Hi! I’m having a problem when animating my TextureButtons.

This is my button with its normal size. I’m using a Tween to animate it when hovering on the button.

This is the code:

create_tween().tween_property(button, “scale”, hover_scale, 0.1).set_trans(Tween.TRANS_SINE)

When i hover my mouse i change the scale to 1.1 both x and y and the pixel art on my button deforms like this:

If I change mannually the scale in the editor, it works perfectly. The problem comes when i do in in game. My buttons are inside a VBoxContainer, but i tested with a button without any Control parent and i have the same issue.

I have the “Default Texture Filter” to Nearest and my “Window Stretch” is on canvas_items and “Aspect” Keep.

I’m sure i’m not the first one who encountered this problem, but i didn’t finde anything related to this.