2
0
Эх сурвалжийг харах

Merge pull request #27754 from godotengine/fix_empty_types_in_json

Fix where json exported empty types
Rémi Verschelde 6 жил өмнө
parent
commit
2fbc4219db

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