diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-10-28 02:10:00 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-10-28 02:10:00 +0300 |
commit | fd1487977b0d1a24b2076e1bdf72b6102821e6e4 (patch) | |
tree | e09feec01bb065aae3b840807ac62ec1e8b782d1 /source/blender/windowmanager/intern/wm_files.c | |
parent | 16796c281352b4fbc5fd1ed5046c166aafd8cf64 (diff) |
Fix T46471: Sculpt strokes doesn't mark file as modified
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 8288b2ed1ef..37fb4e5d89e 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -1314,3 +1314,13 @@ void wm_open_init_use_scripts(wmOperator *op, bool use_prefs) } /** \} */ + +void WM_file_tag_modified(const bContext *C) +{ + wmWindowManager *wm = CTX_wm_manager(C); + 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); + } +} |