[Bf-blender-cvs] [e5a5d28c3e3] master: Fix T67670: Sculpt doesn't mark the file as modified
Campbell Barton
noreply at git.blender.org
Fri Aug 2 16:17:12 CEST 2019
Commit: e5a5d28c3e3ccd574163bfac37372fbcabfa6f75
Author: Campbell Barton
Date: Sat Aug 3 00:07:32 2019 +1000
Branches: master
https://developer.blender.org/rBe5a5d28c3e3ccd574163bfac37372fbcabfa6f75
Fix T67670: Sculpt doesn't mark the file as modified
Was also an issue for texture & paint curve.
===================================================================
M source/blender/editors/sculpt_paint/paint_curve_undo.c
M source/blender/editors/sculpt_paint/paint_image_undo.c
M source/blender/editors/sculpt_paint/sculpt_undo.c
===================================================================
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();
}
}
More information about the Bf-blender-cvs
mailing list