summaryrefslogtreecommitdiff
path: root/modules/gdnative
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2019-04-07 17:33:35 +1000
committerRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-07 11:54:44 +0200
commit163ef9fab3ab1b172f4930ec372932cd1024042d (patch)
treeec602425df6d7f7e1b319078dba8ca55fa7398a6 /modules/gdnative
parent03581e49b7a31a7bcd4a3ace3a0130ab74afe1cb (diff)
Fix where json exported empty types
(cherry picked from commit 6226be9595caec7f741cdf570ca99e742a611388)
Diffstat (limited to 'modules/gdnative')
-rw-r--r--modules/gdnative/nativescript/api_generator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp
index 7eb4294732..4577c7327a 100644
--- a/modules/gdnative/nativescript/api_generator.cpp
+++ b/modules/gdnative/nativescript/api_generator.cpp
@@ -323,6 +323,9 @@ List<ClassAPI> generate_c_api_classes() {
arg_type = "Variant";
} else if (arg_info.type == Variant::OBJECT) {
arg_type = arg_info.class_name;
+ if (arg_type == "") {
+ arg_type = Variant::get_type_name(arg_info.type);
+ }
} else {
arg_type = Variant::get_type_name(arg_info.type);
}