Fix where json exported empty types
This commit is contained in:
parent
b836420fd8
commit
6226be9595
|
@ -323,6 +323,9 @@ List<ClassAPI> generate_c_api_classes() {
|
||||||
arg_type = "Variant";
|
arg_type = "Variant";
|
||||||
} else if (arg_info.type == Variant::OBJECT) {
|
} else if (arg_info.type == Variant::OBJECT) {
|
||||||
arg_type = arg_info.class_name;
|
arg_type = arg_info.class_name;
|
||||||
|
if (arg_type == "") {
|
||||||
|
arg_type = Variant::get_type_name(arg_info.type);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
arg_type = Variant::get_type_name(arg_info.type);
|
arg_type = Variant::get_type_name(arg_info.type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue