mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
Merge pull request #34714 from timothyqiu/groups-editor
Fixes Groups Editor batch add/remove nodes
This commit is contained in:
commit
219a21737d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user