Correct is_reference attribute in api.json for Reference class

This commit is contained in:
Emmanuel Leblond 2020-07-14 18:20:20 +02:00
parent 2921827387
commit b5c80088ce
No known key found for this signature in database
GPG Key ID: C360860E645EFFC0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}