Browse Source

Fix missing material override after two glb reimports

(cherry picked from commit 79d0254a2d3edcd4d8dae2f51d5bce0d8119ab01)
Hilderin 1 năm trước cách đây
mục cha
commit
4d0f10a543
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/editor_node.cpp

+ 1 - 1
editor/editor_node.cpp

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