Fix default value binding in VisualScriptFunctionState

This commit is contained in:
George Marques 2021-06-14 11:26:17 -03:00
parent ad7141703e
commit 49ce5e69ee
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
<method name="resume">
<return type="Variant">
</return>
<argument index="0" name="args" type="Array" default="null">
<argument index="0" name="args" type="Array" default="[ ]">
</argument>
<description>
</description>

View File

@ -2204,7 +2204,7 @@ Variant VisualScriptFunctionState::resume(Array p_args) {
void VisualScriptFunctionState::_bind_methods() {
ClassDB::bind_method(D_METHOD("connect_to_signal", "obj", "signals", "args"), &VisualScriptFunctionState::connect_to_signal);
ClassDB::bind_method(D_METHOD("resume", "args"), &VisualScriptFunctionState::resume, DEFVAL(Variant()));
ClassDB::bind_method(D_METHOD("resume", "args"), &VisualScriptFunctionState::resume, DEFVAL(Array()));
ClassDB::bind_method(D_METHOD("is_valid"), &VisualScriptFunctionState::is_valid);
ClassDB::bind_vararg_method(METHOD_FLAGS_DEFAULT, "_signal_callback", &VisualScriptFunctionState::_signal_callback, MethodInfo("_signal_callback"));
}