From 759ad6aa77dc2b3ba2321b684e42fe9954593bbf Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 12 Sep 2018 18:22:00 +1000 Subject: Cleanup: move preference versioning into own file It's more convenient to keep version patching in the same place, this also splits out some function calls from version patching and supports updating UserDef structs besides the 'U'l global. --- source/blender/blenloader/BLO_readfile.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/blenloader/BLO_readfile.h') diff --git a/source/blender/blenloader/BLO_readfile.h b/source/blender/blenloader/BLO_readfile.h index 9758ec8b560..c9deb628888 100644 --- a/source/blender/blenloader/BLO_readfile.h +++ b/source/blender/blenloader/BLO_readfile.h @@ -158,6 +158,9 @@ void BLO_expand_main(void *fdhandle, struct Main *mainvar); void BLO_update_defaults_userpref_blend(void); void BLO_update_defaults_startup_blend(struct Main *mainvar); +/* Version patch user preferences. */ +void BLO_version_defaults_userpref_blend(struct Main *mainvar, struct UserDef *userdef); + struct BlendThumbnail *BLO_thumbnail_from_file(const char *filepath); struct Main *BLO_main_from_memfile(struct MemFile *memfile, struct Main *bmain, struct Scene **r_scene); -- cgit v1.2.3