mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #91699 from KoBeWi/buff_tree_folding
Fold TreeItems when clicking to the left of fold icon
This commit is contained in:
commit
281fe39929
@ -2828,7 +2828,7 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, int
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!p_item->disable_folding && !hide_folding && p_item->first_child && (p_pos.x >= x_ofs && p_pos.x < (x_ofs + theme_cache.item_margin))) {
|
||||
if (!p_item->disable_folding && !hide_folding && p_item->first_child && (p_pos.x < (x_ofs + theme_cache.item_margin))) {
|
||||
if (enable_recursive_folding && p_mod->is_shift_pressed()) {
|
||||
p_item->set_collapsed_recursive(!p_item->is_collapsed());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user