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

Clean up ResourceImporterTexture #98071

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

BlueCube3310
Copy link
Contributor

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.

@BlueCube3310 BlueCube3310 requested a review from a team as a code owner October 10, 2024 19:51
@AThousandShips AThousandShips added this to the 4.x milestone Oct 11, 2024
@BlueCube3310 BlueCube3310 force-pushed the res-import-tex-clean branch 2 times, most recently from f4c04b8 to 8812034 Compare November 13, 2024 16:07
Copy link
Member

@Calinou Calinou left a 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.

@BlueCube3310 BlueCube3310 force-pushed the res-import-tex-clean branch 2 times, most recently from 529d4f6 to 37a2905 Compare December 3, 2024 18:27
Copy link
Member

@akien-mga akien-mga left a 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!

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Dec 12, 2024
@akien-mga akien-mga merged commit abca831 into godotengine:master Dec 12, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@BlueCube3310 BlueCube3310 deleted the res-import-tex-clean branch December 12, 2024 16:10
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.

5 participants