瀏覽代碼

Fix where json exported empty types

Bastiaan Olij 6 年之前
父節點
當前提交
6226be9595
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      modules/gdnative/nativescript/api_generator.cpp

+ 3 - 0
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);
 					}