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:
Rémi Verschelde 2020-07-15 08:29:36 +02:00 committed by GitHub
commit 9bda8df46c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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