Fix T46471: Sculpt strokes doesn't mark file as modified
[blender.git] / source / blender / editors / sculpt_paint / sculpt_undo.c
index 1f1be51b9a6cffc54912de0642eb9b2a161263b9..28fe526e9520410e27c6dc800f73591f56e7f2cf 100644 (file)
@@ -884,7 +884,7 @@ void sculpt_undo_push_begin(const char *name)
                                 sculpt_undo_restore, sculpt_undo_free, sculpt_undo_cleanup);
 }
 
-void sculpt_undo_push_end(void)
+void sculpt_undo_push_end(const bContext *C)
 {
        ListBase *lb = undo_paint_push_get_list(UNDO_PAINT_MESH);
        SculptUndoNode *unode;
@@ -901,4 +901,6 @@ void sculpt_undo_push_end(void)
        }
 
        ED_undo_paint_push_end(UNDO_PAINT_MESH);
+
+       WM_file_tag_modified(C);
 }