From e5a5d28c3e3ccd574163bfac37372fbcabfa6f75 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 3 Aug 2019 00:07:32 +1000 Subject: Fix T67670: Sculpt doesn't mark the file as modified Was also an issue for texture & paint curve. --- source/blender/editors/sculpt_paint/paint_curve_undo.c | 1 + source/blender/editors/sculpt_paint/paint_image_undo.c | 3 +++ source/blender/editors/sculpt_paint/sculpt_undo.c | 1 + 3 files changed, 5 insertions(+) (limited to 'source/blender/editors') diff --git a/source/blender/editors/sculpt_paint/paint_curve_undo.c b/source/blender/editors/sculpt_paint/paint_curve_undo.c index 7e283274383..bd62a59e73f 100644 --- a/source/blender/editors/sculpt_paint/paint_curve_undo.c +++ b/source/blender/editors/sculpt_paint/paint_curve_undo.c @@ -168,6 +168,7 @@ void ED_paintcurve_undo_push_end(void) { UndoStack *ustack = ED_undo_stack_get(); BKE_undosys_step_push(ustack, NULL, NULL); + WM_file_tag_modified(); } /** \} */ diff --git a/source/blender/editors/sculpt_paint/paint_image_undo.c b/source/blender/editors/sculpt_paint/paint_image_undo.c index 2a1158ec804..c7ec4f3f2b9 100644 --- a/source/blender/editors/sculpt_paint/paint_image_undo.c +++ b/source/blender/editors/sculpt_paint/paint_image_undo.c @@ -48,6 +48,8 @@ #include "GPU_draw.h" +#include "WM_api.h" + #include "paint_intern.h" /* -------------------------------------------------------------------- */ @@ -617,6 +619,7 @@ void ED_image_undo_push_end(void) { UndoStack *ustack = ED_undo_stack_get(); BKE_undosys_step_push(ustack, NULL, NULL); + WM_file_tag_modified(); } /** \} */ diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index dde1e51e764..d4c97faa0a6 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -1012,6 +1012,7 @@ void sculpt_undo_push_end(void) if (wm->op_undo_depth == 0) { UndoStack *ustack = ED_undo_stack_get(); BKE_undosys_step_push(ustack, NULL, NULL); + WM_file_tag_modified(); } } -- cgit v1.2.3