You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #77992 from ajreckof/Prevent-unselectable-nodes-when-switching-filter-and-no-children-match-the-new-filter
Prevent unselectable nodes when switching filter and no children match the new filter.
This commit is contained in:
@@ -656,15 +656,13 @@ bool SceneTreeEditor::_update_filter(TreeItem *p_parent, bool p_scroll_to_select
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keep_for_children) {
|
if (keep) {
|
||||||
if (keep) {
|
p_parent->clear_custom_color(0);
|
||||||
p_parent->clear_custom_color(0);
|
p_parent->set_selectable(0, true);
|
||||||
p_parent->set_selectable(0, true);
|
} else if (keep_for_children) {
|
||||||
} else {
|
p_parent->set_custom_color(0, get_theme_color(SNAME("disabled_font_color"), SNAME("Editor")));
|
||||||
p_parent->set_custom_color(0, get_theme_color(SNAME("disabled_font_color"), SNAME("Editor")));
|
p_parent->set_selectable(0, false);
|
||||||
p_parent->set_selectable(0, false);
|
p_parent->deselect(0);
|
||||||
p_parent->deselect(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editor_selection) {
|
if (editor_selection) {
|
||||||
|
|||||||
Reference in New Issue
Block a user