Skip to content

Conversation

@timothyqiu
Copy link
Member

This PR refactors the _load_resource_on_startup() method to improve code readability and maintainability.

When inspecting some other issues, I came across this method. The combination of that while loop + two bools makes the code flow very difficult to understand.

After reviewing the code, I realized that it could be written in a much more straightforward and simple way.

@KoBeWi KoBeWi modified the milestones: 4.x, 4.6 Nov 3, 2025
@Repiteo Repiteo merged commit e172334 into godotengine:master Nov 4, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 4, 2025

Thanks!

@timothyqiu timothyqiu deleted the simplify-while branch November 4, 2025 23:30
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.

3 participants