Skip to content

Commit d57296f

Browse files
committed
Merge pull request godotengine#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
2 parents 64456e7 + 847c257 commit d57296f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/uid_upgrade_tool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void UIDUpgradeTool::finish_upgrade() {
7474

7575
int step = 0;
7676
for (const String &file_path : resave_paths) {
77-
Ref<Resource> res = ResourceLoader::load(file_path);
77+
Ref<Resource> res = ResourceLoader::load(file_path, "", ResourceFormatLoader::CACHE_MODE_REPLACE);
7878
ep.step(TTR("Attempting to re-save ") + file_path, step++);
7979
if (res.is_valid()) {
8080
ResourceSaver::save(res);

0 commit comments

Comments
 (0)