-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Add toggling visibility of multiple nodes in scene tree by click-and-dragging #102009
base: master
Are you sure you want to change the base?
Add toggling visibility of multiple nodes in scene tree by click-and-dragging #102009
Conversation
8ea67d2
to
afdbc9b
Compare
9bdf6fc
to
097d3b7
Compare
097d3b7
to
500e097
Compare
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.
Tested locally, it works as expected.
simplescreenrecorder-2025-01-25_16.23.10.mp4
Some feedback:
- The pressed icon background is only present on the first clicked icon, not the icons you've dragged the mouse over. I feel this background should display on all icons your mouse has gone over until you release the mouse button.
- Remember to update the class reference XML and fill in the descriptions as per the documentation.
I'm not sure there's an easy way to do this, especially without adding unnecessary clutter to the tree and scene tree editor classes. It would be a lot easier to just make the pressed icon background for the first clicked icon become 'unpressed' when the click drag happens (so all the icons appear 'unpressed' during the drag). Would that be acceptable? |
500e097
to
b3b4175
Compare
The behavior is fine, but the implementation is too complex. It should not modify Tree, or at least not introduce new API. If it turns out impossible, at least |
@KoBeWi Also for the record, the |
I'd wait for feedback from other maintainers. Maybe extra signals are fine, especially if it avoids code duplication and allows better visual feedback. |
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.
The new functionality is fine, but the implementation might deserve more discussion.
Other software such as Blender, Photoshop, and Aseprite let you click and drag over layer/object visibility icons to toggle the visibility of multiple objects at once. I think this is a nice quality-of-life feature that improves workflow in the editor. This PR implements that feature for the scene tree dock.