summaryrefslogtreecommitdiff
path: root/modules/gdnative
diff options
context:
space:
mode:
authorRanie Jade Ramiso <raniejaderamiso@gmail.com>2020-02-02 22:39:20 +1100
committerRanie Jade Ramiso <raniejaderamiso@gmail.com>2020-02-02 22:39:20 +1100
commit78f55698f25a9c6f527560e54f6a330e3e463c82 (patch)
treecb73b9e9d4f5a2e36d2a32bd8672b42d3339d50a /modules/gdnative
parent0edcb8ed58be8bf6a5145ceaae5ff96778afb2a2 (diff)
Fix gdnative api generation for methods that return enums
Diffstat (limited to 'modules/gdnative')
-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 850871579b..13fbd7a69d 100644
--- a/modules/gdnative/nativescript/api_generator.cpp
+++ b/modules/gdnative/nativescript/api_generator.cpp
@@ -366,7 +366,7 @@ List<ClassAPI> generate_c_api_classes() {
arg_type = Variant::get_type_name(arg_info.type);
}
} else {
- arg_type = Variant::get_type_name(arg_info.type);
+ arg_type = get_type_name(arg_info);
}
method_api.argument_names.push_back(arg_name);