Correct is_reference attribute in api.json for Reference class
This commit is contained in:
parent
2921827387
commit
b5c80088ce
|
@ -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 New Issue