summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-08-08 18:23:36 +0200
committerGitHub <noreply@github.com>2016-08-08 18:23:36 +0200
commit5d9967ef0071b8ecc36db45640cb3eb66adb5f14 (patch)
tree5f2661deaee0f5dce013ecc80e9cdda2c0c51f09 /modules/gdscript
parent4f6a21b0df772804b67073dc65f000f571a4511e (diff)
parent4cd246898e00bd029af95f3b5fafe7a1e979ceff (diff)
Merge pull request #6055 from eska014/native-bind-rettype
Allow documenting unexposed return types in bind_native_method
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gd_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp
index 2f5c7956d1..2b8d6e86e2 100644
--- a/modules/gdscript/gd_script.cpp
+++ b/modules/gdscript/gd_script.cpp
@@ -707,7 +707,7 @@ void GDScript::_get_property_list(List<PropertyInfo> *p_properties) const {
void GDScript::_bind_methods() {
- ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"new",&GDScript::_new,MethodInfo("new"));
+ ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"new",&GDScript::_new,MethodInfo(Variant::OBJECT,"new"));
ObjectTypeDB::bind_method(_MD("get_as_byte_code"),&GDScript::get_as_byte_code);