From b5c80088ce70bf8ef8fd3b3a0cf98bf18a453743 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 --- 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 ae0b5222f05..3f11aacba9a 100644 --- a/modules/gdnative/nativescript/api_generator.cpp +++ b/modules/gdnative/nativescript/api_generator.cpp @@ -214,7 +214,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; }