From 4cd246898e00bd029af95f3b5fafe7a1e979ceff Mon Sep 17 00:00:00 2001 From: eska Date: Sat, 6 Aug 2016 02:20:59 +0200 Subject: Allow documenting unexposed return types in bind_native_method Document return type of `Object.call` and `GDScript.new` --- modules/gdscript/gd_script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gdscript') 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 *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); -- cgit v1.2.3