From fd1487977b0d1a24b2076e1bdf72b6102821e6e4 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 28 Oct 2015 04:10:00 +0500 Subject: Fix T46471: Sculpt strokes doesn't mark file as modified --- source/blender/editors/util/undo.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/blender/editors/util') diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index cd68df52ed4..483bb88b91c 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -111,11 +111,7 @@ void ED_undo_push(bContext *C, const char *str) BKE_undo_write(C, str); } - if (wm->file_saved) { - wm->file_saved = 0; - /* notifier that data changed, for save-over warning or header */ - WM_event_add_notifier(C, NC_WM | ND_DATACHANGED, NULL); - } + WM_file_tag_modified(C); } /* note: also check undo_history_exec() in bottom if you change notifiers */ -- cgit v1.2.3