diff options
author | reduz <reduzio@gmail.com> | 2020-10-09 18:41:53 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2020-10-09 19:43:22 -0300 |
commit | 351a122029fea57f431672965d623f34262d6e11 (patch) | |
tree | 8aa2d53340e004f23b7f03cef4e5ca854d6c1b76 /editor | |
parent | 7c4d1e9c650f40de99f959e90795bd8443b7fd3d (diff) |
Add ability to bind an unbind arguments to Callable.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scene_tree_dock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 75dc840738..fa2270dcd6 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1141,7 +1141,7 @@ void SceneTreeDock::_notification(int p_what) { node_shortcuts->add_child(button_custom); button_custom->set_text(TTR("Other Node")); button_custom->set_icon(get_theme_icon("Add", "EditorIcons")); - button_custom->connect("pressed", callable_mp(this, &SceneTreeDock::_tool_selected), make_binds(TOOL_NEW, false)); + button_custom->connect("pressed", callable_bind(callable_mp(this, &SceneTreeDock::_tool_selected), TOOL_NEW, false)); node_shortcuts->add_spacer(); create_root_dialog->add_child(node_shortcuts); |