diff --git a/core/variant_call.cpp b/core/variant_call.cpp index ab0e1eeeeb2..a024c0068ac 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -1112,6 +1112,7 @@ void Variant::get_constructor_list(Variant::Type p_type, List *p_lis const _VariantCall::ConstructData &cd = E->get(); MethodInfo mi; mi.name=Variant::get_type_name(p_type); + mi.return_val.type=p_type; for(int i=0;i *p_lis pi.name="from"; pi.type=Variant::Type(i); mi.arguments.push_back(pi); + mi.return_val.type=p_type; p_list->push_back(mi); } } diff --git a/tools/doc/doc_data.cpp b/tools/doc/doc_data.cpp index c278662db21..b3eb6b08f78 100644 --- a/tools/doc/doc_data.cpp +++ b/tools/doc/doc_data.cpp @@ -59,6 +59,9 @@ void DocData::merge_from(const DocData& p_data) { if (cf.methods[j].name!=m.name) continue; + if (cf.methods[j].arguments.size()!=m.arguments.size()) + continue; + const MethodDoc &mf = cf.methods[j]; m.description=mf.description;