Bladeren bron

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
Rémi Verschelde 6 maanden geleden
bovenliggende
commit
d57296f850
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      editor/uid_upgrade_tool.cpp

+ 1 - 1
editor/uid_upgrade_tool.cpp

@@ -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);