summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2020-07-14 18:20:20 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2020-07-14 18:20:20 +0200
commitb5c80088ce70bf8ef8fd3b3a0cf98bf18a453743 (patch)
tree125d9cd7d8f95043a33a8ebc7806838388a86d59 /modules
parent2921827387b339fef98cb761f9571dd0f1dd1986 (diff)
Correct is_reference attribute in api.json for Reference class
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnative/nativescript/api_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp
index ae0b5222f0..3f11aacba9 100644
--- a/modules/gdnative/nativescript/api_generator.cpp
+++ b/modules/gdnative/nativescript/api_generator.cpp
@@ -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;
}