-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Clean up ResourceImporterTexture #98071
Clean up ResourceImporterTexture #98071
Conversation
f4c04b8
to
8812034
Compare
c0d6c98
to
5f7a288
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.
Tested locally on https://github.com/godotengine/tps-demo (rebased on top of master
0f20e67), it works as expected. All textures import correctly, with the expected texture format.
Code looks good to me.
529d4f6
to
37a2905
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.
Looks great to me!
37a2905
to
0400cbc
Compare
Thanks! |
ResourceImporterTexture was kind of confusing to parse visually,
this PR attempts to resolve that by cleaning up the general flow of the code and moving some code blocks to their own functions.
It also optimizes certain parts of the image processing code, such as checking for the color channels only when compressing for VRAM.