Fixed incorrect type display of function argument in GDScript editor tooltips
This commit is contained in:
parent
1b06b668c9
commit
e25c86bf5d
1 changed files with 5 additions and 1 deletions
|
@ -671,7 +671,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>";
|
||||
|
|
Loading…
Reference in a new issue