From 751782c8df7e49b5612b01715d871775fc09818f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 3 Apr 2018 07:44:37 +0200 Subject: Correct own error in string lookup --- source/blender/editors/undo/memfile_undo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/undo/memfile_undo.c') diff --git a/source/blender/editors/undo/memfile_undo.c b/source/blender/editors/undo/memfile_undo.c index 756c46b4e8a..5033d741c7b 100644 --- a/source/blender/editors/undo/memfile_undo.c +++ b/source/blender/editors/undo/memfile_undo.c @@ -132,7 +132,7 @@ static void memfile_undosys_step_decode(struct bContext *C, UndoStep *us_p, int { struct Main *bmain = CTX_data_main(C); for (WorkSpaceData *wsd = us->workspace_data.first; wsd != NULL; wsd = wsd->next) { - WorkSpace *workspace = BLI_findstring(&bmain->workspaces, wsd->name, offsetof(ID, name)); + WorkSpace *workspace = BLI_findstring(&bmain->workspaces, wsd->name, offsetof(ID, name) + 2); if (workspace) { workspace->object_mode = wsd->object_mode; workspace->object_mode_restore = wsd->object_mode_restore; -- cgit v1.2.3