mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #23016 from QbieShay/fix_visibility_toggle
Fixed visibility toggle with node selection
This commit is contained in:
commit
48d3d15e93
@ -73,7 +73,7 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item, int p_column, int p_i
|
||||
undo_redo->create_action(TTR("Toggle Visible"));
|
||||
_toggle_visible(n);
|
||||
List<Node *> selection = editor_selection->get_selected_node_list();
|
||||
if (selection.size() > 1) {
|
||||
if (selection.size() > 1 && selection.find(n) != NULL) {
|
||||
for (List<Node *>::Element *E = selection.front(); E; E = E->next()) {
|
||||
Node *nv = E->get();
|
||||
ERR_FAIL_COND(!nv);
|
||||
|
Loading…
Reference in New Issue
Block a user