From f2c6d16290354bd9fa6605583eb5fc49dff59421 Mon Sep 17 00:00:00 2001 From: daniel080400 Date: Sat, 14 Jun 2025 18:11:37 +0800 Subject: [PATCH] Avoid manipulating PackedScene cache when generating scene thumbnails --- editor/plugins/editor_preview_plugins.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/editor_preview_plugins.cpp b/editor/plugins/editor_preview_plugins.cpp index f203c6b21d..5bcef553e0 100644 --- a/editor/plugins/editor_preview_plugins.cpp +++ b/editor/plugins/editor_preview_plugins.cpp @@ -324,7 +324,7 @@ Ref EditorPackedScenePreviewPlugin::generate_from_path(const String & aborted = false; Error load_error; - Ref pack = ResourceLoader::load(p_path, "PackedScene", ResourceFormatLoader::CACHE_MODE_IGNORE, &load_error); // no more cache issues? + Ref pack = ResourceLoader::load(p_path, "PackedScene", ResourceFormatLoader::CACHE_MODE_IGNORE_DEEP, &load_error); // no more cache issues? if (load_error != OK) { print_error(vformat("Failed to generate scene thumbnail for %s : Loaded with error code %d", p_path, int(load_error))); return Ref();