Merge pull request #40386 from touilleMan/correct-Reference-is_reference-api.json
Correct is_reference attribute in api.json for Reference class
This commit is contained in:
commit
9bda8df46c
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ List<ClassAPI> generate_c_api_classes() {
|
|||
{
|
||||
List<StringName> inheriters;
|
||||
ClassDB::get_inheriters_from_class("Reference", &inheriters);
|
||||
bool is_reference = !!inheriters.find(class_name);
|
||||
bool is_reference = !!inheriters.find(class_name) || class_name == "Reference";
|
||||
// @Unclear
|
||||
class_api.is_reference = !class_api.is_singleton && is_reference;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue