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

Improve UID file creation condition #102489

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Feb 6, 2025

Fixes #102465

The original code used ResourceLoader::exists and then ResourceLoader::has_custom_uid_support, which means it traversed all loaders twice to check whether the file is recognized and can generate .uid file. I added a new method that does it within a single loop and prevents creating .uid file if no loader recognized the resource.

@KoBeWi KoBeWi added this to the 4.4 milestone Feb 6, 2025
@KoBeWi KoBeWi requested a review from a team as a code owner February 6, 2025 15:38
@KoBeWi KoBeWi force-pushed the uid_file_factory_regulations branch from 50c470c to 65509ae Compare February 6, 2025 16:08
akien-mga added a commit to akien-mga/godot that referenced this pull request Feb 7, 2025
…gulations

Improve UID file creation condition
@akien-mga akien-mga merged commit 161abe7 into godotengine:master Feb 7, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the uid_file_factory_regulations branch February 7, 2025 04:14
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.

Text files generate .uid when saved from editor
3 participants