Skip to content

Fix "Send Key(s) to RESET" not appearing on first right-click in Animation Editor#117273

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
rinevard:send-key-to-reset-menu-item-disappear
Mar 15, 2026
Merged

Fix "Send Key(s) to RESET" not appearing on first right-click in Animation Editor#117273
akien-mga merged 1 commit intogodotengine:masterfrom
rinevard:send-key-to-reset-menu-item-disappear

Conversation

@rinevard
Copy link
Contributor

Fixes #117100.

The cause of issue is that selection(the selected keys) is updated next frame due to a deferred signal connection (CONNECT_DEFERRED), but AnimationTrackEditor::can_add_reset_key relis on its value at this frame. This commit extracts the menu pop up logic as a single function and uses call_deferred to call it to use the updated selection.

For context, selection is updated by _try_select_at_ui_pos -> emit_signal(SNAME("select_key"), key_idx, true) -> AnimationTrackEditor::_key_selected and is used in AnimationTrackEditor::can_add_reset_key.

@TokageItLab TokageItLab modified the milestones: 4.x, 4.7 Mar 13, 2026
@akien-mga
Copy link
Member

Needs rebase after #117290.

@rinevard rinevard force-pushed the send-key-to-reset-menu-item-disappear branch from 27b7d7e to 1d45654 Compare March 15, 2026 12:52
@rinevard rinevard force-pushed the send-key-to-reset-menu-item-disappear branch from 1d45654 to e0798f6 Compare March 15, 2026 13:01
@akien-mga akien-mga merged commit ed256ec into godotengine:master Mar 15, 2026
20 checks passed
@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.

Animation editor: "Send Key(s) to RESET" menu item doesn't appear if user has not selected key before right-click

5 participants