Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-01-22 08:01:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-22 08:08:12 +0300
commitee5a4f41eb487c455337579643826d14326a4171 (patch)
tree749f8e672379382964a65e87a81040010aac93ab /source/blender/editors/space_nla
parent141f17eaf4af89b434141715bffae348bfc4f4d2 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_nla')
-rw-r--r--source/blender/editors/space_nla/nla_channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_nla/nla_channels.c b/source/blender/editors/space_nla/nla_channels.c
index 20a330492a4..fb297672f0f 100644
--- a/source/blender/editors/space_nla/nla_channels.c
+++ b/source/blender/editors/space_nla/nla_channels.c
@@ -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;