Fix T48210: Editing all selected buttons fails to auto-key

This commit is contained in:
Campbell Barton 2016-05-05 02:37:46 +10:00
parent 10bbce30a9
commit 08be000637
Notes: blender-bot 2023-02-14 10:21:11 +01:00
Referenced by issue #48210, UI Buttons: Alt key (all selected) edition does not autokey F-curves of non-active ID
1 changed files with 13 additions and 0 deletions

View File

@ -7873,6 +7873,19 @@ static void button_activate_exit(
ui_apply_but_undo(but);
ui_apply_but_autokey(C, but);
#ifdef USE_ALLSELECT
{
/* only RNA from this button is used */
uiBut but_temp = *but;
uiSelectContextStore *selctx_data = &data->select_others;
for (int i = 0; i < selctx_data->elems_len; i++) {
uiSelectContextElem *other = &selctx_data->elems[i];
but_temp.rnapoin = other->ptr;
ui_apply_but_autokey(C, &but_temp);
}
}
#endif
/* popup menu memory */
if (block->flag & UI_BLOCK_POPUP_MEMORY)
ui_popup_menu_memory_set(block, but);