From 47ed332499184f0a6ecbe79f82fae81dadf1480a Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Sat, 17 Jun 2023 03:16:24 +0200 Subject: [PATCH] Allow base types in method params of connection dialog --- editor/connections_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index c788fee7f8c..f4b7b14e990 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -303,7 +303,7 @@ List ConnectDialog::_filter_method_list(const List &p_me break; } - if (stype == Variant::OBJECT && mtype == Variant::OBJECT && E->get().class_name != F->get().class_name) { + if (stype == Variant::OBJECT && mtype == Variant::OBJECT && !ClassDB::is_parent_class(E->get().class_name, F->get().class_name)) { type_mismatch = true; break; }