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.
This commit is contained in:
2019-09-05 15:46:55 +02:00
parent 423435bd2e
commit 103d29e2b2
3 changed files with 10 additions and 23 deletions

View File

@@ -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__ */