mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 10:31:15 +00:00
GDScript compiler subclass bugfixes
This commit is contained in:
parent
e25d9281d4
commit
bce6f1792e
14 changed files with 286 additions and 284 deletions
|
|
@ -213,16 +213,6 @@ Error GDScriptAnalyzer::resolve_inheritance(GDScriptParser::ClassNode *p_class,
|
|||
return OK;
|
||||
}
|
||||
|
||||
if (p_class == parser->head) {
|
||||
if (p_class->identifier) {
|
||||
p_class->fqcn = p_class->identifier->name;
|
||||
} else {
|
||||
p_class->fqcn = parser->script_path;
|
||||
}
|
||||
} else {
|
||||
p_class->fqcn = p_class->outer->fqcn + "::" + String(p_class->identifier->name);
|
||||
}
|
||||
|
||||
if (p_class->identifier) {
|
||||
StringName class_name = p_class->identifier->name;
|
||||
if (class_exists(class_name)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue