diff options
| author | Haoyu Qiu <timothyqiu32@gmail.com> | 2019-12-31 10:47:37 +0800 |
|---|---|---|
| committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2019-12-31 10:47:37 +0800 |
| commit | 3e1adfc3efb2d8c2e07dab9841a982def6c22d81 (patch) | |
| tree | 074187ee6e2b31edfe00db3f74e18e6e104d242d /editor | |
| parent | 5fa1905131bc20e8a4a939d0edf8370091c88a50 (diff) | |
| download | redot-engine-3e1adfc3efb2d8c2e07dab9841a982def6c22d81.tar.gz | |
Fixes Groups Editor batch add/remove nodes
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/groups_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp index 41878d18b0..e6bd843778 100644 --- a/editor/groups_editor.cpp +++ b/editor/groups_editor.cpp @@ -121,7 +121,7 @@ bool GroupDialog::_can_edit(Node *p_node, String p_group) { } void GroupDialog::_add_pressed() { - TreeItem *selected = nodes_to_add->get_selected(); + TreeItem *selected = nodes_to_add->get_next_selected(NULL); if (!selected) { return; @@ -150,7 +150,7 @@ void GroupDialog::_add_pressed() { } void GroupDialog::_removed_pressed() { - TreeItem *selected = nodes_to_remove->get_selected(); + TreeItem *selected = nodes_to_remove->get_next_selected(NULL); if (!selected) { return; |
