-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cursor behavior for multiselect in Tree while holding CTRL #71024
Fix cursor behavior for multiselect in Tree while holding CTRL #71024
Conversation
} | ||
|
||
} else { | ||
if (c.selectable) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section is only a small code readability improvement.
aa5d550
to
9217be2
Compare
9217be2
to
9abbdea
Compare
Thanks! |
Cherry-picked for 4.1.1. |
I believe I have found a regression possibly caused by this PR. 2023-09-20.17-53-21.mp4 |
selected_item = p_item; | ||
selected_col = p_column; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please open a new issue. |
Done #81988 |
It fixes cursor behaviour for selecting multiple items in
Tree
while holding CTRL button.Before:
2023-01-07.13-43-32.mp4
After:
2023-01-07.13-45-51.mp4
The fix in
scene/gui/tree.cpp
exposed a problem ineditor/scene_tree_editor.cpp
as every node in the list was selected/deselected each time there was any selection change:2023-01-07.14-00-48.mp4
So in
editor/scene_tree_editor.cpp
I fixed it to behave the same as before:2023-01-07.14-05-38.mp4
I think the
_update_selection
inscene_tree_editor.cpp
should be redesigned to be more dependent on the selection from a Tree, not the opposite way. Or Space button shouldn't be for rename where there is F2 for that, but it is a topic for separete proposal :)