diff options
| author | Juan Linietsky | 2016-09-07 19:39:02 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-09-07 19:39:57 -0300 |
| commit | 828e1c092fa706d4392363435950960261765ba4 (patch) | |
| tree | 12fd9dc722ee3c7cb604e44264550de9fd72868b /modules/gdscript/gd_script.cpp | |
| parent | 19bd661a8fdc381bb68018028bf76997cf74b65a (diff) | |
| download | godot-828e1c092fa706d4392363435950960261765ba4.tar.gz godot-828e1c092fa706d4392363435950960261765ba4.tar.zst godot-828e1c092fa706d4392363435950960261765ba4.zip | |
Diffstat (limited to 'modules/gdscript/gd_script.cpp')
| -rw-r--r-- | modules/gdscript/gd_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index b97a0fcbb..0ea10950d 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -751,7 +751,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(Variant::OBJECT,"new")); + ObjectTypeDB::bind_vararg_method(METHOD_FLAGS_DEFAULT,"new",&GDScript::_new,MethodInfo(Variant::OBJECT,"new")); ObjectTypeDB::bind_method(_MD("get_as_byte_code"),&GDScript::get_as_byte_code); |
