From 3d8fc90d84442d44ccd0136bf7e13037667fbede Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 26 Mar 2024 23:51:30 +0800 Subject: [PATCH] Fix wrong extension filter for dependency editor (cherry picked from commit e1ee838d11dbe1d154bd21d9b74e14bd48105628) --- editor/dependency_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/dependency_editor.cpp b/editor/dependency_editor.cpp index 3660e7f2850..5ce87f13a13 100644 --- a/editor/dependency_editor.cpp +++ b/editor/dependency_editor.cpp @@ -66,7 +66,7 @@ void DependencyEditor::_load_pressed(Object *p_item, int p_cell, int p_button, M List ext; ResourceLoader::get_recognized_extensions_for_type(ti->get_metadata(0), &ext); for (const String &E : ext) { - search->add_filter("*" + E); + search->add_filter("*." + E); } search->popup_file_dialog(); }