Fix the NLA setting the active object without exiting edit-mode

This is done by convention in the outliner and dope-sheet.

Missing edit-mode exit causes glitches with mixed object/edit-mode undo.
This commit is contained in:
Campbell Barton 2021-01-22 16:01:49 +11:00
parent 141f17eaf4
commit ee5a4f41eb
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ static int mouse_nla_channels(
}
/* change active object - regardless of whether it is now selected [T37883] */
ED_object_base_activate(C, base); /* adds notifier */
ED_object_base_activate_with_mode_exit_if_needed(C, base); /* adds notifier */
if ((adt) && (adt->flag & ADT_UI_SELECTED)) {
adt->flag |= ADT_UI_ACTIVE;