Fix `is` operation fail on get_script()

Fix: #39244
This commit is contained in:
Thakee Nathees 2020-06-03 21:04:48 +05:30
parent 8cb67bb359
commit 8f795cb38e
1 changed files with 5 additions and 1 deletions

View File

@ -7003,7 +7003,11 @@ bool GDScriptParser::_get_function_signature(DataType &p_base_type, const String
}
r_default_arg_count = method->get_default_argument_count();
if (method->get_name() == "get_script") {
r_return_type = DataType(); // Variant for now and let runtime decide.
} else {
r_return_type = _type_from_property(method->get_return_info(), false);
}
r_vararg = method->is_vararg();
for (int i = 0; i < method->get_argument_count(); i++) {