Merge pull request #27754 from godotengine/fix_empty_types_in_json

Fix where json exported empty types
This commit is contained in:
Rémi Verschelde 2019-04-07 11:54:23 +02:00 committed by GitHub
commit 2fbc4219db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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