diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-25 08:08:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-25 08:13:53 +0300 |
commit | b073e59d4e0de2a22c0a15ded1df4d29c0fa7a8e (patch) | |
tree | 0875835aa4356084c8f680af62c2ae60be3ec643 /source/blender/editors/lattice | |
parent | e301f3422d9922598e0cabf12a4e22eda0ae0880 (diff) |
Fix T85975: Edit-mode undo/redo removes overlays
Setting the active object when decoding undo steps missed
a call to ED_object_base_active_refresh.
Diffstat (limited to 'source/blender/editors/lattice')
-rw-r--r-- | source/blender/editors/lattice/editlattice_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/lattice/editlattice_undo.c b/source/blender/editors/lattice/editlattice_undo.c index 94b3dfbfe88..2a6edc3249f 100644 --- a/source/blender/editors/lattice/editlattice_undo.c +++ b/source/blender/editors/lattice/editlattice_undo.c @@ -246,7 +246,7 @@ static void lattice_undosys_step_decode(struct bContext *C, /* The first element is always active */ ED_undo_object_set_active_or_warn( - CTX_data_view_layer(C), us->elems[0].obedit_ref.ptr, us_p->name, &LOG); + CTX_data_scene(C), CTX_data_view_layer(C), us->elems[0].obedit_ref.ptr, us_p->name, &LOG); /* Check after setting active. */ BLI_assert(lattice_undosys_poll(C)); |