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-02-25 08:08:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-25 08:13:53 +0300
commitb073e59d4e0de2a22c0a15ded1df4d29c0fa7a8e (patch)
tree0875835aa4356084c8f680af62c2ae60be3ec643 /source/blender/editors/mesh/editmesh_undo.c
parente301f3422d9922598e0cabf12a4e22eda0ae0880 (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/mesh/editmesh_undo.c')
-rw-r--r--source/blender/editors/mesh/editmesh_undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_undo.c b/source/blender/editors/mesh/editmesh_undo.c
index e46363eafcc..67816f069f6 100644
--- a/source/blender/editors/mesh/editmesh_undo.c
+++ b/source/blender/editors/mesh/editmesh_undo.c
@@ -801,7 +801,7 @@ static void mesh_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(mesh_undosys_poll(C));