You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix cursor behaviour in Tree while holding CTRL
(cherry picked from commit 9abbdea95e)
This commit is contained in:
@@ -1114,9 +1114,15 @@ void SceneTreeEditor::_update_selection(TreeItem *item) {
|
||||
}
|
||||
|
||||
if (editor_selection->is_selected(n)) {
|
||||
item->select(0);
|
||||
if (!item->is_selected(0)) {
|
||||
item->select(0);
|
||||
}
|
||||
} else {
|
||||
item->deselect(0);
|
||||
if (item->is_selected(0)) {
|
||||
TreeItem *previous_cursor_item = tree->get_selected();
|
||||
item->deselect(0);
|
||||
previous_cursor_item->set_as_cursor(0);
|
||||
}
|
||||
}
|
||||
|
||||
TreeItem *c = item->get_first_child();
|
||||
|
||||
Reference in New Issue
Block a user