You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix autoloaded scene loses their built-in script when upgrading from 4.3 to 4.4
This commit is contained in:
@@ -74,7 +74,7 @@ void UIDUpgradeTool::finish_upgrade() {
|
|||||||
|
|
||||||
int step = 0;
|
int step = 0;
|
||||||
for (const String &file_path : resave_paths) {
|
for (const String &file_path : resave_paths) {
|
||||||
Ref<Resource> res = ResourceLoader::load(file_path);
|
Ref<Resource> res = ResourceLoader::load(file_path, "", ResourceFormatLoader::CACHE_MODE_REPLACE);
|
||||||
ep.step(TTR("Attempting to re-save ") + file_path, step++);
|
ep.step(TTR("Attempting to re-save ") + file_path, step++);
|
||||||
if (res.is_valid()) {
|
if (res.is_valid()) {
|
||||||
ResourceSaver::save(res);
|
ResourceSaver::save(res);
|
||||||
|
|||||||
Reference in New Issue
Block a user