diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 16:36:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-03 00:25:36 +0300 |
commit | b13459f9e585bcb0e4ba61e391e59a888f5042f2 (patch) | |
tree | 449609947a88ad92ab4d99d4a31a48c4a0f66d7e /source/blender/blenloader/BLO_readfile.h | |
parent | e255040c7797a282cb0ea614e3f95c6a59cd0298 (diff) |
Cleanup: rename main preferences versioning function
BLO_version_defaults_userpref_blend -> blo_do_versions_userdef
The name was misleading as it was declared along with
BLO_update_defaults_startup_blend making it seem these functions were
related.
In fact preference defaults don't need to be updated as is done for
startup.blend since an in-memory blend file isn't used.
Rename the function to match other versioning functions
called from readfile.c. Also add/update comments on these differences.
Diffstat (limited to 'source/blender/blenloader/BLO_readfile.h')
-rw-r--r-- | source/blender/blenloader/BLO_readfile.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenloader/BLO_readfile.h b/source/blender/blenloader/BLO_readfile.h index 88d89d9d6da..0ab9a5e9e14 100644 --- a/source/blender/blenloader/BLO_readfile.h +++ b/source/blender/blenloader/BLO_readfile.h @@ -223,13 +223,13 @@ typedef void (*BLOExpandDoitCallback)(void *fdhandle, struct Main *mainvar, void void BLO_main_expander(BLOExpandDoitCallback expand_doit_func); void BLO_expand_main(void *fdhandle, struct Main *mainvar); -/* Update defaults in startup.blend & userprefs.blend, without having to save and embed it */ +/** + * Update defaults in startup.blend, without having to save and embed it. + * \note defaults for preferences are stored in `userdef_default.c` and can be updated there. + */ void BLO_update_defaults_startup_blend(struct Main *bmain, const char *app_template); void BLO_update_defaults_workspace(struct WorkSpace *workspace, const char *app_template); -/* Version patch user preferences. */ -void BLO_version_defaults_userpref_blend(struct UserDef *userdef); - /* Disable unwanted experimental feature settings on startup. */ void BLO_sanitize_experimental_features_userpref_blend(struct UserDef *userdef); |