Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TextureButton focus texture logic #56472

Merged
merged 1 commit into from
Jan 7, 2022
Merged

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jan 3, 2022

Fixes #56459

There was a faulty logic for drawing focus texture. It was drawn after any other texture, but it was dependent on the other texture to determine position and size. Thus if other texture didn't draw, focus was drawn with zero size.

@KoBeWi KoBeWi added bug regression cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:gui labels Jan 3, 2022
@KoBeWi KoBeWi added this to the 4.0 milestone Jan 3, 2022
@KoBeWi KoBeWi requested a review from a team as a code owner January 3, 2022 23:54
@akien-mga akien-mga merged commit 096a13b into godotengine:master Jan 7, 2022
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the now_focus branch January 7, 2022 09:52
@akien-mga
Copy link
Member

Cherry-picked for 3.5.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jan 12, 2022
@akien-mga
Copy link
Member

Cherry-picked for 3.4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.4.x Buttons not showing Focus texture unless 'Normal' texture is set when using keyboard control
3 participants