Merge pull request #39263 from ThakeeNathees/is-operation-fail

[3.2] Fix `is` operation fail on get_script()
This commit is contained in:
Rémi Verschelde 2020-06-16 16:28:43 +02:00 committed by GitHub
commit 1cf8652945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7053,7 +7053,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++) {