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:11:12 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-20 17:16:22 +0400
commit018fe81779e81ad43b16c74969764ae3b71d4b40 (patch)
treed7b0c1a56e74055ea20358d2d88fa41090245a73 /source/blender/windowmanager/intern/wm_files.c
parentaa18c4c445cbe7e5cbf0b766a42cfc9e4b764002 (diff)
Fix T38269: scene full copy in mesh edit or sculpt mode did not copy mesh edits.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index c4c91b40df2..71d78a83b00 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -871,22 +871,6 @@ bool write_crash_blend(void)
}
/**
- * Flush any temp data from object editing to DNA before writing the blend file to disk.
- */
-static void write_flush_editdata(bContext *C)
-{
- Object *obedit;
-
- obedit = CTX_data_edit_object(C);
-
- if (obedit) {
- ED_object_editmode_load(obedit);
- }
-
- ED_sculpt_force_update(C);
-}
-
-/**
* \see #wm_homefile_write_exec wraps #BLO_write_file in a similar way.
*/
int wm_file_write(bContext *C, const char *filepath, int fileflags, ReportList *reports)
@@ -943,7 +927,7 @@ int wm_file_write(bContext *C, const char *filepath, int fileflags, ReportList *
/* don't forget not to return without! */
WM_cursor_wait(1);
- write_flush_editdata(C);
+ ED_editors_flush_edits(C, false);
fileflags |= G_FILE_HISTORY; /* write file history */
@@ -1019,7 +1003,7 @@ int wm_homefile_write_exec(bContext *C, wmOperator *op)
BLI_make_file_string("/", filepath, BLI_get_folder_create(BLENDER_USER_CONFIG, NULL), BLENDER_STARTUP_FILE);
printf("trying to save homefile at %s ", filepath);
- write_flush_editdata(C);
+ ED_editors_flush_edits(C, false);
/* force save as regular blend file */
fileflags = G.fileflags & ~(G_FILE_COMPRESS | G_FILE_AUTOPLAY | G_FILE_LOCK | G_FILE_SIGN | G_FILE_HISTORY);