-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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 a pin toggle to prevent involuntary bottom editor switching #98074
Conversation
0479c08
to
ef1546e
Compare
I very much like this. However as there is no proposal linked, I'll just ask here: Does this make the pin in the animation editor unnecessary? Or how do these work together? |
@Jowan-Spooner The animation pin just locks the animation context to the selected My PR is completely unrelated to that. |
I think that's a cool feature. Maybe it should use a "pin" instead of a lock though? Locks usually means you can't edit something. |
@groud I thought about that, but I feared that some people would confuse the functionality with something related to the animation pinning. Which actually just happened above, in fact! 😛 |
To me, lock feels like you won't be able to interact with the panel. Pin gives me a better idea that the panel won't go away |
ef1546e
to
966131b
Compare
@SaracenOne @lyuma we have discussing for a long time to make pins like this. Letting them know |
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. This is pretty useful to enable before running the project when you don't want automatic switching to Output to occur (but only momentarily) 🙂
067d1c0
to
54388f7
Compare
This discussion godotengine/godot-proposals#11087 asks for similar functionality: locking the bottom panel closed, i.e. preventing any bottom panel from opening. They suggest an editor setting, but it seems like this PR could easily be extended to support locking/pinning no open bottom panel. If this PR is extended to support that use case, a lock icon seems slightly more fitting than a pin icon. But locking/pinning a bottom panel open is a much more common use case, so a pin icon is probably still better overall. Supporting this other use case can easily be a followup PR, too, but I felt like mentioning it because of the icon issue. |
I think this already fixes that. I was suggesting an option to stop the tabs from automatically switching. The bottom panel opening is a result of it switching tabs. |
@The2AndOnly
This PR currently does not prevent a closed bottom panel from opening; it only prevents an open bottom panel from switching to another bottom panel. You can try it out yourself by downloading one of the artifacts from the |
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.
Seems fine to me.
54388f7
to
bb07b2d
Compare
@akien-mga Changes made. |
Thanks! |
This PR adds a lock button to the bottom panel, that when toggled, stops switching of one bottom editor to another.
That means if you have the "Output" tab open, then you select an
AnimationPlayer
node, having the lock enabled will stop it from switching to the "Animation" tab.Sponsored By: 🐺 Lone Wolf Technology / 🍀 W4 Games.
Production edit: