X Tutup
Skip to content

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

Open
rinevard wants to merge 1 commit intogodotengine:masterfrom
rinevard:send-key-to-reset-menu-item-disappear
Open

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

Conversation

@rinevard
Copy link

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.

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

2 participants

X Tutup