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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-09-05 16:46:55 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-09-09 15:26:29 +0300
commit103d29e2b2c0053436d0cef649ee9c6a24b2cba8 (patch)
tree1dd9d7b2ca12df4fbc80f1efc6ffd81dec45a184 /source/blender/blenlib/BLI_timer.h
parent423435bd2e44e2fc9ec0e984d25a2d2141c59454 (diff)
Timer: Use explicit re-initialization on file load
Before this the timer API was relying on using a callback API to do initialization when new file is loaded. This isn't how rest of Blender works and it gets in a way because callbacks API is to be move to the BKE level. Use explicit call to timer API from where the file is loaded.
Diffstat (limited to 'source/blender/blenlib/BLI_timer.h')
-rw-r--r--source/blender/blenlib/BLI_timer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_timer.h b/source/blender/blenlib/BLI_timer.h
index dc47aefa090..959ac4a2b2b 100644
--- a/source/blender/blenlib/BLI_timer.h
+++ b/source/blender/blenlib/BLI_timer.h
@@ -50,4 +50,8 @@ void BLI_timer_execute(void);
void BLI_timer_free(void);
+/* This function is to be called next to BLI_CB_EVT_LOAD_PRE, to make sure the module
+ * is properly configured for the new file. */
+void BLI_timer_on_file_load(void);
+
#endif /* __BLI_TIMER_H__ */