Fix T73495: Missing undo switching active shape-key in edit-mode

This commit is contained in:
Campbell Barton 2020-01-30 14:55:54 +11:00
parent 7a27f64ecb
commit 1d28ff7f2b
Notes: blender-bot 2023-02-14 06:00:44 +01:00
Referenced by issue #73495, Missing undo push when switching active shape keys
1 changed files with 4 additions and 1 deletions

View File

@ -791,7 +791,10 @@ static void ui_apply_but_undo(uiBut *but)
/* Exception for renaming ID data, we always need undo pushes in this case,
* because undo systems track data by their ID, see: T67002. */
extern PropertyRNA rna_ID_name;
if (but->rnaprop == &rna_ID_name) {
/* Exception for active shape-key, since changing this in edit-mode updates
* the shape key from object mode data. */
extern PropertyRNA rna_Object_active_shape_key_index;
if (ELEM(but->rnaprop, &rna_ID_name, &rna_Object_active_shape_key_index)) {
/* pass */
}
else {