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

SpriteFramesEditor Fix calculating frame index from mouse position #68064

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented Oct 30, 2022

Fixes incorrect calculation of the frame index in the "Select frames" dialog: when clicking the first pixel in the separation/gap, and when clicking the first negative row/column. Both should result in not a valid frame index. Bug in action:
7L0JGcD9xE

@kleonc kleonc added bug topic:editor cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:animation cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels Oct 30, 2022
@kleonc kleonc added this to the 4.0 milestone Oct 30, 2022
@kleonc kleonc requested a review from timothyqiu October 30, 2022 20:36
@akien-mga akien-mga merged commit 869c2bd into godotengine:master Oct 31, 2022
@akien-mga
Copy link
Member

Thanks!

@kleonc kleonc deleted the sprite-frames-editor-fix-frame-index-calculation branch October 31, 2022 12:12
@akien-mga
Copy link
Member

Cherry-picked for 3.6.

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

Cherry-picked for 3.5.2

@timothyqiu timothyqiu removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Dec 5, 2022
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 participants