Correct is_reference attribute in api.json for Reference class

(cherry picked from commit b5c80088ce)
This commit is contained in:
Emmanuel Leblond 2020-07-14 18:20:20 +02:00 committed by Rémi Verschelde
parent f7021e57d7
commit 8bc44c868e
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,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;
}