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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user