Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-15 06:21:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-15 06:48:17 +0300
commit244315afc9bd905c6d725b5be2428fa6e382cd00 (patch)
treeebb138cc7f79856d38b2cbfdcfea6cfcafaba389 /source/blender/windowmanager/wm.h
parentd611f2889ec78993d7d7e644c78b0e2775573da9 (diff)
Cleanup: refactor auto-save timer usage
- Split out auto-save file writing from timer code. - Add wm_autosave_timer_begin so there are both begin & end functions. - Replace WM_event_add_timer/WM_event_remove_timer with begin/end calls.
Diffstat (limited to 'source/blender/windowmanager/wm.h')
-rw-r--r--source/blender/windowmanager/wm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm.h b/source/blender/windowmanager/wm.h
index 6fc44e82df0..7fddf60eb97 100644
--- a/source/blender/windowmanager/wm.h
+++ b/source/blender/windowmanager/wm.h
@@ -75,6 +75,7 @@ void wm_jobs_timer_end(wmWindowManager *wm, wmTimer *wt);
/* wm_files.c */
void wm_autosave_timer(struct Main *bmain, wmWindowManager *wm, wmTimer *wt);
+void wm_autosave_timer_begin(struct wmWindowManager *wm);
void wm_autosave_timer_end(wmWindowManager *wm);
void wm_autosave_delete(void);