mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Clarify API for top selected nodes in EditorSelection and make public
This commit is contained in:
parent
594d64ec24
commit
17db92b8b8
12 changed files with 119 additions and 102 deletions
|
|
@ -112,7 +112,7 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item, int p_column, int p_i
|
|||
} else if (p_id == BUTTON_VISIBILITY) {
|
||||
undo_redo->create_action(TTR("Toggle Visible"));
|
||||
_toggle_visible(n);
|
||||
List<Node *> selection = editor_selection->get_selected_node_list();
|
||||
List<Node *> selection = editor_selection->get_top_selected_node_list();
|
||||
if (selection.size() > 1 && selection.find(n) != nullptr) {
|
||||
for (Node *nv : selection) {
|
||||
ERR_FAIL_NULL(nv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue