diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-20 15:12:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 15:12:12 +0200 |
commit | 9f0ea24920727b8a67e6c0f01b7ba7e1669faca4 (patch) | |
tree | a4f7ce01a8700be0d2a71e2b9cf5e235bb3ac7f0 | |
parent | 48ace81d7b79c0428295df276c649df143ca0c3b (diff) | |
parent | 1775c796a482eacc3b620a58ffa9004ce13096b3 (diff) |
Merge pull request #22163 from DualMatrix/create_extra
Automatically add extra args to function when creating it from create signal window
-rw-r--r-- | editor/connections_dialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 456e2fa1f0..a1337268ba 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -432,6 +432,9 @@ void ConnectionsDock::_make_or_edit_connection() { if (add_script_function) { // pick up args here before "it" is deleted by update_tree script_function_args = it->get_metadata(0).operator Dictionary()["args"]; + for (int i = 0; i < cToMake.binds.size(); i++) { + script_function_args.append("extra_arg_" + itos(i)); + } } if (connect_dialog->is_editing()) { |