From 8c3bb69e72d7d67f74e78aec234fa6b5812427a5 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Thu, 19 Sep 2019 13:22:05 -0300 Subject: [PATCH] Fix incorrect typing when creating methods via the connection dialog --- editor/connections_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index c5b81c46854..cfc2ec11cf5 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -529,7 +529,7 @@ void ConnectionsDock::_make_or_edit_connection() { // 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)); + script_function_args.append("extra_arg_" + itos(i) + ":" + Variant::get_type_name(cToMake.binds[i].get_type())); } }