Merge pull request #22163 from DualMatrix/create_extra

Automatically add extra args to function when creating it from create signal window
This commit is contained in:
Rémi Verschelde 2018-09-20 15:12:12 +02:00 committed by GitHub
commit 9f0ea24920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()) {