You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #72454 from dalexeev/gds-fix-icon-annotation
GDScript: Fix `@icon` annotation
This commit is contained in:
@@ -4847,11 +4847,6 @@ Ref<GDScriptParserRef> GDScriptAnalyzer::get_parser_for(const String &p_path) {
|
||||
}
|
||||
|
||||
Error GDScriptAnalyzer::resolve_inheritance() {
|
||||
// Apply annotations.
|
||||
for (GDScriptParser::AnnotationNode *&E : parser->head->annotations) {
|
||||
resolve_annotation(E);
|
||||
E->apply(parser, parser->head);
|
||||
}
|
||||
return resolve_class_inheritance(parser->head, true);
|
||||
}
|
||||
|
||||
@@ -4885,6 +4880,12 @@ Error GDScriptAnalyzer::analyze() {
|
||||
return err;
|
||||
}
|
||||
|
||||
// Apply annotations.
|
||||
for (GDScriptParser::AnnotationNode *&E : parser->head->annotations) {
|
||||
resolve_annotation(E);
|
||||
E->apply(parser, parser->head);
|
||||
}
|
||||
|
||||
resolve_interface();
|
||||
resolve_body();
|
||||
if (!parser->errors.is_empty()) {
|
||||
|
||||
Reference in New Issue
Block a user