Merge pull request #62934 from Xwdit/script_doc_arg_def_var

This commit is contained in:
Rémi Verschelde 2022-08-10 16:31:45 +02:00 committed by GitHub
commit 345dd9f0fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -290,7 +290,9 @@ void GDScript::_get_script_method_list(List<MethodInfo> *r_list, bool p_include_
#endif
mi.arguments.push_back(arginfo);
}
#ifdef TOOLS_ENABLED
mi.default_arguments.append_array(func->get_default_arg_values());
#endif
mi.return_val = func->get_return_type();
r_list->push_back(mi);
}