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

GLTF: Fix three bugs which prevented extracted textures from being refreshed #86504

Merged

Conversation

lyuma
Copy link
Contributor

@lyuma lyuma commented Dec 25, 2023

The three sub-bugs this PR addresses are:

  1. Extracted texture paths in GLTFDocument::_parse_image_save_image at the project root started with res:/// which broke cache invalidation
  2. md5 hashes were not being written to generator_parameters for new imports, which led Godot to think the file was manually created.
  3. EditorFileSystem::reimport_append must emit the resources_reimported signal in order for the resource cache to be updated.

Fixes #83154

…freshed.

1. Extracted texture paths in `GLTFDocument::_parse_image_save_image` at the project root started with res:/// which broke cache invalidation
2. md5 hashes were not being written to generator_parameters for new imports, which led Godot to think the file was manually created.
3. `EditorFileSystem::reimport_append` must emit the `resources_reimported` signal in order for the resource cache to be updated.
@fire fire requested a review from a team December 28, 2023 00:07
@akien-mga akien-mga changed the title gltf: fix three bugs which prevented extracted textures from being refreshed gltf: Fix three bugs which prevented extracted textures from being refreshed Jan 2, 2024
@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jan 2, 2024
@akien-mga akien-mga merged commit a1d4585 into godotengine:master Jan 2, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga changed the title gltf: Fix three bugs which prevented extracted textures from being refreshed GLTF: Fix three bugs which prevented extracted textures from being refreshed Jan 11, 2024
@lyuma lyuma added the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jan 23, 2024
@YuriSizov YuriSizov removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jan 24, 2024
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.2.2.

@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jan 24, 2024
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.4.

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.

glTF import won't update extracted texture
5 participants