Merge pull request #96446 from Hilderin/fix-missing-material-override-after-two-glb-reimports

Fix missing material override after two glb reimports
This commit is contained in:
Rémi Verschelde 2024-09-03 11:43:56 +02:00
commit f4cc60fe0c
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -6159,7 +6159,7 @@ void EditorNode::reload_instances_with_path_in_edited_scenes() {
base_packed_scene = current_packed_scene; base_packed_scene = current_packed_scene;
} }
if (!local_scene_cache.find(path)) { 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; local_scene_cache[path] = current_packed_scene;
} else { } else {
current_packed_scene = local_scene_cache[path]; current_packed_scene = local_scene_cache[path];