diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-28 09:15:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 09:15:40 +0200 |
commit | 185072015f0fa38bbb2b48f5bd3b39cc6e07c487 (patch) | |
tree | b527e47882a292fe377dc6325306a250f6ecc6bb /modules/gdnative/nativescript/nativescript.cpp | |
parent | 2dbc7d312ffdcbd9745e8ef70d81c7b7a61ef0ec (diff) | |
parent | a919f5e614d0a2212e50c648aa0fb3e31c61e9e0 (diff) |
Merge pull request #31606 from toasteater/fix/nativescript-new-json-return-type
Fix the return type of NativeScript::new in API json
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.cpp')
-rw-r--r-- | modules/gdnative/nativescript/nativescript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp index 9f7c3880ec..7c313c983f 100644 --- a/modules/gdnative/nativescript/nativescript.cpp +++ b/modules/gdnative/nativescript/nativescript.cpp @@ -79,7 +79,7 @@ void NativeScript::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::STRING, "script_class_name"), "set_script_class_name", "get_script_class_name"); ADD_PROPERTY(PropertyInfo(Variant::STRING, "script_class_icon_path", PROPERTY_HINT_FILE), "set_script_class_icon_path", "get_script_class_icon_path"); - ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "new", &NativeScript::_new, MethodInfo(Variant::OBJECT, "new")); + ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "new", &NativeScript::_new, MethodInfo("new")); } #define NSL NativeScriptLanguage::get_singleton() |