mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Fixed incorrect type display of function argument in GDScript editor tooltips
This commit is contained in:
parent
1b06b668c9
commit
e25c86bf5d
@ -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 New Issue
Block a user