Skip to content
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

Select node when clicked in AnimationPlayer timeline #81188

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

the-sink
Copy link
Contributor

@the-sink the-sink commented Aug 31, 2023

Implements suggestion made in godotengine/godot-proposals#7067. When clicking on the space on the left of the timeline group header that contains the icon & node name, it will select the node corresponding to that group.

godot.windows.editor.dev.x86_64_2023-08-30_22-07-40.mp4

Production edit: Closes godotengine/godot-proposals#7067

@TokageItLab
Copy link
Member

It looks like a good improvement, but there are some concerns. In particular, we need to test if this behavior doesn't conflicts with AnimationTrack or Sprite2D which open the editor by selecting, and if it doesn't causes any problems during pinning.

@mieldepoche
Copy link
Contributor

Some feedback:

  • Maybe clicking on the icon in plain list mode should behave like that too?
simplescreenrecorder-2023-09-20_09.41.50.webm
  • As mentioned above, some nodes can show their tool when selected:
an AnimatedSprite2D an AnimationPlayer
simplescreenrecorder-2023-09-20_09.44.54.webm
simplescreenrecorder-2023-09-20_09.49.04.webm

@the-sink
Copy link
Contributor Author

Hmm... all I can think of to fix that issue is to temporarily pin the window when the selection is being changed from in the animation editor, but that sounds a little hacky imo.

Also I noticed that most editors don't respect the pin? For instance, clicking on an AnimatedSprite2D to open the SpriteFrames editor while the animation editor is pinned still steals focus from the animation editor regardless. The TileMap editor also seems to ignore the pin (is it only meant to hold focus over other AnimationPlayers?)

@KoBeWi
Copy link
Member

KoBeWi commented Sep 25, 2023

I think the pin is for pinning the AnimationPlayer itself, so that Animation tab does not switch when you click another AnimationPlayer (this is useful for animation tracks). It does not prevent other editors from getting into focus.

IMO context switching is not much related to this PR, because it would require changes to the editor in general. Also it happens only with a few specific nodes.

@the-sink the-sink force-pushed the animation_player_things branch from 05d6145 to 0a0496b Compare September 29, 2023 00:59
@the-sink the-sink force-pushed the animation_player_things branch from 0a0496b to cbdb23e Compare September 29, 2023 01:00
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Oct 2, 2023
@akien-mga akien-mga merged commit a3d6d60 into godotengine:master Oct 3, 2023
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select node when clicking node name in AnimationPlayer timeline / Animation tab
5 participants