-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 creating cursor image from AtlasTexture
#92702
Fix creating cursor image from AtlasTexture
#92702
Conversation
caae397
to
417fb1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! I always like negative diffs :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why #88970 broke this is that I missed the purpose of the atlas rect. The code had a special case for AtlasTexture, where it extracted the base texture and region separately and then re-created a sub-region image 🤦♂️
417fb1b
to
91e995e
Compare
Thanks! |
Removes special handling of AtlasTexture when creating cursor Image from it, as
AtlasTexture::get_image
already extracts the region and thus can be used directly.Fixes #92671 (I've tested only on Windows, please check/test different platforms).
(v4.3.beta1.official [a4f2ea9])
(this PR)