-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Fixed issue in TextureAtlas import of images with wrong size. #42103
Conversation
For the reference, last commit on this code was #39271 (@RandomShaper). |
The fix seems to work fine, and I could reproduce the issue before applying it.
I checked and #39271 did not cause this issue though, it's already present in 3.2.1-stable. |
I'm not sure this fix is totally correct. I think that if the However, I haven't tested it. and I'm not sure I'll have time reasonably soon. If one of you was able to test it, that'd help. |
It does solve the problem in #42057, but it would likely be worth testing on more configurations to see how it behaves. This code is not the easiest to parse and indeed, it seems a good spot for having off-by-one errors here and there which might counterbalance each other. |
@akien-mga can this PR be merged in 3.x branch? compiled it with 3.3.3-stable and it does solve #42057 issue. |
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.
I've tested that the changes fix the bug last time - couldn't get anyone to review the code change in depth as it probably gives everyone a headache, me included. Let's merge and see if we spot any regression in testing builds.
Thanks! |
Cherry-picked for 3.4. |
Fix #42057