Merge pull request #119466 from KoBeWi/project_up!

Add an option to run the project upgrade tool when updating to a new Godot version
This commit is contained in:
Thaddeus Crews
2026-06-24 14:52:57 -05:00
4 changed files with 25 additions and 1 deletions
+7
View File
@@ -1544,6 +1544,13 @@ void EditorNode::_sources_changed(bool p_exist) {
OS::get_singleton()->benchmark_end_measure("Editor", "First Scan");
for (const String &arg : OS::get_singleton()->get_cmdline_args()) {
if (arg == "--run-upgrade-tool") {
project_upgrade_tool->prepare_upgrade();
return;
}
}
// Reload the global shader variables, but this time
// loading textures, as they are now properly imported.
RenderingServer::get_singleton()->global_shader_parameters_load_settings(true);