GDScript: Fix calling builtin static functions
This commit is contained in:
parent
47545aeb1a
commit
1c8b076502
3 changed files with 9 additions and 1 deletions
|
@ -3248,7 +3248,9 @@ bool GDScriptAnalyzer::get_function_signature(GDScriptParser::CallNode *p_source
|
||||||
|
|
||||||
for (const MethodInfo &E : methods) {
|
for (const MethodInfo &E : methods) {
|
||||||
if (E.name == p_function) {
|
if (E.name == p_function) {
|
||||||
return function_signature_from_info(E, r_return_type, r_par_types, r_default_arg_count, r_static, r_vararg);
|
function_signature_from_info(E, r_return_type, r_par_types, r_default_arg_count, r_static, r_vararg);
|
||||||
|
r_static = Variant::is_builtin_method_static(p_base_type.builtin_type, function_name);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
func test():
|
||||||
|
print(Color.html_is_valid("00ffff"))
|
||||||
|
print("OK")
|
|
@ -0,0 +1,3 @@
|
||||||
|
GDTEST_OK
|
||||||
|
True
|
||||||
|
OK
|
Loading…
Reference in a new issue