From e9d8847e29c67de71265e301ff92caecfe99c412 Mon Sep 17 00:00:00 2001 From: Manuel Dun Date: Sun, 2 Oct 2022 21:09:54 -0400 Subject: fix error dialog from appearing after loading material res --- editor/editor_resource_picker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_resource_picker.cpp b/editor/editor_resource_picker.cpp index de8259c25c..f89aef4cc3 100644 --- a/editor/editor_resource_picker.cpp +++ b/editor/editor_resource_picker.cpp @@ -155,7 +155,7 @@ void EditorResourcePicker::_file_selected(const String &p_path) { any_type_matches = is_global_class ? EditorNode::get_editor_data().script_class_is_parent(res_type, base) : loaded_resource->is_class(base); - if (!any_type_matches) { + if (any_type_matches) { break; } } -- cgit v1.2.3