From 163ef9fab3ab1b172f4930ec372932cd1024042d Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Sun, 7 Apr 2019 17:33:35 +1000 Subject: [PATCH] Fix where json exported empty types (cherry picked from commit 6226be9595caec7f741cdf570ca99e742a611388) --- modules/gdnative/nativescript/api_generator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp index 7eb42947322..4577c7327ab 100644 --- a/modules/gdnative/nativescript/api_generator.cpp +++ b/modules/gdnative/nativescript/api_generator.cpp @@ -323,6 +323,9 @@ List 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); }