summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2021-02-14 22:32:42 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2021-02-14 22:32:42 +0100
commit20f48f010523c16887100cb316d237ad25e514d5 (patch)
treeb39c8ba418fa0487fb98cb1593ae6cda954dbc62 /editor
parentfc5e9828b42472df3f20d0a1449581c995ac1d63 (diff)
Fix SceneTreeEditor::_update_tree() binding
Diffstat (limited to 'editor')
-rw-r--r--editor/scene_tree_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp
index 2cd64a81dc..b9a3e2a801 100644
--- a/editor/scene_tree_editor.cpp
+++ b/editor/scene_tree_editor.cpp
@@ -1110,7 +1110,7 @@ void SceneTreeEditor::set_connecting_signal(bool p_enable) {
}
void SceneTreeEditor::_bind_methods() {
- ClassDB::bind_method("_update_tree", &SceneTreeEditor::_update_tree); // Still used by some connect_compat.
+ ClassDB::bind_method(D_METHOD("_update_tree", "scroll_to_selected"), &SceneTreeEditor::_update_tree, DEFVAL(false)); // Still used by some connect_compat.
ClassDB::bind_method("_rename_node", &SceneTreeEditor::_rename_node);
ClassDB::bind_method("_test_update_tree", &SceneTreeEditor::_test_update_tree);