summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-31 12:48:43 +0100
committerGitHub <noreply@github.com>2019-12-31 12:48:43 +0100
commit219a21737d5d72469595fecb4620eaa1eb150854 (patch)
tree2906ad4fb72685e2c5acfe42ec94839e6af236c3
parent1bed049ed5e0a8ab889d0d76da373e9d15a0d154 (diff)
parent3e1adfc3efb2d8c2e07dab9841a982def6c22d81 (diff)
Merge pull request #34714 from timothyqiu/groups-editor
Fixes Groups Editor batch add/remove nodes
-rw-r--r--editor/groups_editor.cpp4
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;