From 8bc44c868ed61cfc0cf61e94391b02767253d469 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Tue, 14 Jul 2020 18:20:20 +0200 Subject: [PATCH] Correct is_reference attribute in api.json for Reference class (cherry picked from commit b5c80088ce70bf8ef8fd3b3a0cf98bf18a453743) --- modules/gdnative/nativescript/api_generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp index 850871579b6..48a1d26f4f3 100644 --- a/modules/gdnative/nativescript/api_generator.cpp +++ b/modules/gdnative/nativescript/api_generator.cpp @@ -219,7 +219,7 @@ List generate_c_api_classes() { { List 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; }