Skip to content

Commit

Permalink
Merge pull request #78354 from raulsntos/connect-dialog-dont-filter-d…
Browse files Browse the repository at this point in the history
…erived-classes

Allow base types in method params of connection dialog
  • Loading branch information
akien-mga committed Jun 18, 2023
2 parents f9e3e86 + 47ed332 commit 65bc139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ List<MethodInfo> ConnectDialog::_filter_method_list(const List<MethodInfo> &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;
}
Expand Down

0 comments on commit 65bc139

Please sign in to comment.