Fix T67670: Sculpt doesn't mark the file as modified

Was also an issue for texture & paint curve.
This commit is contained in:
Campbell Barton 2019-08-03 00:07:32 +10:00
parent 05226e1512
commit e5a5d28c3e
Notes: blender-bot 2023-02-14 05:59:31 +01:00
Referenced by issue #67670, Blender does not ask to save when closing software out of sculptmode
3 changed files with 5 additions and 0 deletions

View File

@ -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();
}
/** \} */

View File

@ -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();
}
/** \} */

View File

@ -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();
}
}