Merge pull request #63015 from Xwdit/fix_gds_editor_tooltip_arg_type

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

View file

@ -677,7 +677,11 @@ static String _make_arguments_hint(const GDScriptParser::FunctionNode *p_functio
arghint += String::chr(0xFFFF);
}
const GDScriptParser::ParameterNode *par = p_function->parameters[i];
arghint += par->identifier->name.operator String() + ": " + par->get_datatype().to_string();
if (!par->get_datatype().is_hard_type()) {
arghint += par->identifier->name.operator String() + ": Variant";
} else {
arghint += par->identifier->name.operator String() + ": " + par->get_datatype().to_string();
}
if (par->default_value) {
String def_val = "<unknown>";