Fix missing material override after two glb reimports

(cherry picked from commit 79d0254a2d)
This commit is contained in:
Hilderin
2024-09-01 17:12:15 -04:00
committed by Rémi Verschelde
parent f8c9ec3f37
commit 4d0f10a543

View File

@ -6071,7 +6071,7 @@ void EditorNode::reload_instances_with_path_in_edited_scenes() {
base_packed_scene = current_packed_scene;
}
if (!local_scene_cache.find(path)) {
current_packed_scene = ResourceLoader::load(path, "", ResourceFormatLoader::CACHE_MODE_REPLACE_DEEP, &err);
current_packed_scene = ResourceLoader::load(path, "", ResourceFormatLoader::CACHE_MODE_REPLACE, &err);
local_scene_cache[path] = current_packed_scene;
} else {
current_packed_scene = local_scene_cache[path];