summaryrefslogtreecommitdiffstats
path: root/editor/editor_resource_picker.cpp
diff options
context:
space:
mode:
authorManuel Dun <manueldun@gmail.com>2022-10-02 21:09:54 -0400
committerManuel Dun <manueldun@gmail.com>2022-10-02 21:09:54 -0400
commite9d8847e29c67de71265e301ff92caecfe99c412 (patch)
treeb682f4fbc69f05ab65f5c0f82768beea09d41b2e /editor/editor_resource_picker.cpp
parente69b7083d45c5d8698508cce7086d361c4b1f44c (diff)
downloadredot-engine-e9d8847e29c67de71265e301ff92caecfe99c412.tar.gz
fix error dialog from appearing after loading material res
Diffstat (limited to 'editor/editor_resource_picker.cpp')
-rw-r--r--editor/editor_resource_picker.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}