Fix script documentation method argument default values

Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
Xwdit 2022-07-12 05:04:23 +02:00 committed by Xwdit
parent 1b06b668c9
commit f265f175e3

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