Fix wrong extension filter for dependency editor

(cherry picked from commit e1ee838d11)
This commit is contained in:
Haoyu Qiu 2024-03-26 23:51:30 +08:00 committed by Rémi Verschelde
parent 64093528cd
commit 3d8fc90d84
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ void DependencyEditor::_load_pressed(Object *p_item, int p_cell, int p_button, M
List<String> ext; List<String> ext;
ResourceLoader::get_recognized_extensions_for_type(ti->get_metadata(0), &ext); ResourceLoader::get_recognized_extensions_for_type(ti->get_metadata(0), &ext);
for (const String &E : ext) { for (const String &E : ext) {
search->add_filter("*" + E); search->add_filter("*." + E);
} }
search->popup_file_dialog(); search->popup_file_dialog();
} }