summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authoreska <eska@eska.me>2016-08-06 02:20:59 +0200
committereska <eska@eska.me>2016-08-06 02:21:29 +0200
commit4cd246898e00bd029af95f3b5fafe7a1e979ceff (patch)
tree3f85340c9b0f6d0041dd9aded7bdf7a10d08d058 /modules/gdscript
parent2b5198b23dde370563719f57d158f4f342263be2 (diff)
Allow documenting unexposed return types in bind_native_method
Document return type of `Object.call` and `GDScript.new`
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 d1946e2a63..db11974d0d 100644
--- a/modules/gdscript/gd_script.cpp
+++ b/modules/gdscript/gd_script.cpp
@@ -663,7 +663,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);