From aaacc753a7abe2b899e079475384d78594eeb448 Mon Sep 17 00:00:00 2001 From: Ranie Jade Ramiso Date: Sun, 2 Feb 2020 22:39:20 +1100 Subject: [PATCH] Fix gdnative api generation for methods that return enums (cherry picked from commit 78f55698f25a9c6f527560e54f6a330e3e463c82) --- 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 9f83095f000..3c1e6257473 100644 --- a/modules/gdnative/nativescript/api_generator.cpp +++ b/modules/gdnative/nativescript/api_generator.cpp @@ -361,7 +361,7 @@ List 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);