Use C++ iterators for Lists in many situations
This commit is contained in:
parent
b918c4c3ce
commit
4e6efd1b07
218 changed files with 2755 additions and 3004 deletions
|
|
@ -79,8 +79,7 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item, int p_column, int p_i
|
|||
_toggle_visible(n);
|
||||
List<Node *> selection = editor_selection->get_selected_node_list();
|
||||
if (selection.size() > 1 && selection.find(n) != nullptr) {
|
||||
for (List<Node *>::Element *E = selection.front(); E; E = E->next()) {
|
||||
Node *nv = E->get();
|
||||
for (Node *nv : selection) {
|
||||
ERR_FAIL_COND(!nv);
|
||||
if (nv == n) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue