Allow base types in method params of connection dialog

This commit is contained in:
Raul Santos 2023-06-17 03:16:24 +02:00
parent c0d8d91b15
commit 47ed332499
No known key found for this signature in database
GPG Key ID: B532473AE3A803E4

View File

@ -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;
}