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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-20 17:19:49 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-20 17:26:48 +0400
commitfbf821c50b25b49620a7d7af35321851a547010a (patch)
tree9cfe671d73f9a01862777a27f2c454695ba75cc8 /source/blender/windowmanager/intern/wm_files.c
parent018fe81779e81ad43b16c74969764ae3b71d4b40 (diff)
Fix T37967: autosave does not save dynamic topology edits while in sculpt mode.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c9
1 files changed, 1 insertions, 8 deletions
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);