summaryrefslogtreecommitdiff
path: root/modules/gdnative/api_generator.cpp
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2017-07-19 13:07:06 +0200
committerGitHub <noreply@github.com>2017-07-19 13:07:06 +0200
commit45b498c4e056e313e06b169d64f991b32db30423 (patch)
treee846cefb4dd0263e0160d8ec4d5bfe07b4d2a90e /modules/gdnative/api_generator.cpp
parentc5ba9d9b7c6d7d2c08d01b13af87748af4dee8a2 (diff)
parent535290d2e7b25aced99a6b33acc2a75a60960801 (diff)
Merge pull request #9699 from RameshRavone/master
[gdnative] `Object::_get` return type and dynamic property
Diffstat (limited to 'modules/gdnative/api_generator.cpp')
-rw-r--r--modules/gdnative/api_generator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/api_generator.cpp b/modules/gdnative/api_generator.cpp
index d5f22ee7a3..a9d1f96287 100644
--- a/modules/gdnative/api_generator.cpp
+++ b/modules/gdnative/api_generator.cpp
@@ -268,6 +268,8 @@ List<ClassAPI> generate_c_api_classes() {
method_api.method_name = method_api.method_name.get_slice(":", 0);
} else if (m->get().return_val.type != Variant::NIL) {
method_api.return_type = m->get().return_val.hint == PROPERTY_HINT_RESOURCE_TYPE ? m->get().return_val.hint_string : Variant::get_type_name(m->get().return_val.type);
+ } else if (m->get().return_val.name != "") {
+ method_api.return_type = m->get().return_val.name;
} else {
method_api.return_type = "void";
}