diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-05-04 19:37:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-05-04 19:37:46 +0300 |
commit | 08be000637b6610b59d3f2e47d666a64bd4fbb22 (patch) | |
tree | 41e50b725ca208a666a69c1f94ff8b41383473a6 /source | |
parent | 10bbce30a9262b7a6764533dad1eaf8ebc8a7313 (diff) |
Fix T48210: Editing all selected buttons fails to auto-key
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 2840be02ef8..cddd779c269 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -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); |