Merge pull request #40714 from ThakeeNathees/Object-type-bug-fix
GDScript: "Object" datatype changed from BUILTIN to NATIVE
This commit is contained in:
commit
3e99059129
@ -342,6 +342,16 @@ GDScriptParser::DataType GDScriptAnalyzer::resolve_datatype(GDScriptParser::Type
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (first == "Object") {
|
||||||
|
result.kind = GDScriptParser::DataType::NATIVE;
|
||||||
|
result.native_type = "Object";
|
||||||
|
if (p_type->type_chain.size() > 1) {
|
||||||
|
push_error(R"("Object" type don't contain nested types.)", p_type->type_chain[1]);
|
||||||
|
return GDScriptParser::DataType();
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
if (GDScriptParser::get_builtin_type(first) < Variant::VARIANT_MAX) {
|
if (GDScriptParser::get_builtin_type(first) < Variant::VARIANT_MAX) {
|
||||||
// Built-in types.
|
// Built-in types.
|
||||||
if (p_type->type_chain.size() > 1) {
|
if (p_type->type_chain.size() > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user