Merge pull request #103439 from Hilderin/fix-autoloaded-scene-loses-built-in-script-when-upgrading-to-4.4

Fix autoloaded scene loses their built-in script when upgrading to 4.4
This commit is contained in:
Rémi Verschelde 2025-03-02 22:08:18 +01:00
commit d57296f850
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -74,7 +74,7 @@ void UIDUpgradeTool::finish_upgrade() {
int step = 0;
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++);
if (res.is_valid()) {
ResourceSaver::save(res);