From fbf821c50b25b49620a7d7af35321851a547010a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 20 Jan 2014 14:19:49 +0100 Subject: Fix T37967: autosave does not save dynamic topology edits while in sculpt mode. --- source/blender/windowmanager/intern/wm_files.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_files.c') diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 71d78a83b00..b99246dc34b 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -1086,8 +1086,6 @@ void wm_autosave_timer(const bContext *C, wmWindowManager *wm, wmTimer *UNUSED(w wmEventHandler *handler; char filepath[FILE_MAX]; - Scene *scene = CTX_data_scene(C); - WM_event_remove_timer(wm, NULL, wm->autosavetimer); /* if a modal operator is running, don't autosave, but try again in 10 seconds */ @@ -1100,12 +1098,7 @@ void wm_autosave_timer(const bContext *C, wmWindowManager *wm, wmTimer *UNUSED(w } } - if (scene) { - Object *ob = OBACT; - - if (ob && ob->mode & OB_MODE_SCULPT) - multires_force_update(ob); - } + ED_editors_flush_edits(C, false); wm_autosave_location(filepath); -- cgit v1.2.3