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

Fix reimporting textures after changing import project settings #94975

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented Jul 31, 2024

To solve #62271, #94357 removed a check which is necessary to reimport textures when relevant project settings have changed (e.g. which VRAM compression formats are enabled).

This reintroduces the check but further down, fixing #62271 differently by checking first if the .import file has valid=false, which is written when an import fails. This allows to prevent reimporting, and then still do the check for whether texture import settings warrant a reimport on a valid imported file.

Testing project: testreimportbug.zip
object/compress.glb fails importing due to lacking Draco compression support
godog-cutscene.jpg is used for a Sprite3D in the main scene so it should be detected as requiring VRAM Compression even if the .import file is removed

@akien-mga akien-mga merged commit 0f172b1 into godotengine:master Jul 31, 2024
18 checks passed
@akien-mga akien-mga deleted the fix-reimport-textures-with-changed-settings branch July 31, 2024 14:18
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.

Enabling ETC2/ASTC does not import textures in new format
2 participants