diff options
Diffstat (limited to 'source/blender/editors/mesh/editmesh_undo.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_undo.c | 2 |
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)); |