1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fix where json exported empty types

(cherry picked from commit 6226be9595)
This commit is contained in:
Bastiaan Olij
2019-04-07 17:33:35 +10:00
committed by Rémi Verschelde
parent 03581e49b7
commit 163ef9fab3

View File

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