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>2019-12-11 05:51:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-11 05:51:29 +0300
commit5cd6aa4bc9a7f852bc3221ff4b62863d399be042 (patch)
tree115e7177ed871ec5ce77df2e37c78e793dfbcf71 /source/blender
parentd1631c9f03ea0d198cf7539d4af803c78caa656b (diff)
Docs: expand comments in versioning code
Help ensure we update all necessary areas when version bumping.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c12
-rw-r--r--source/blender/blenloader/intern/versioning_userdef.c23
2 files changed, 29 insertions, 6 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 5c7fda67ff0..68ea821996f 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -4266,8 +4266,18 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
+ /**
+ * Versioning code until next subversion bump goes here.
+ *
+ * \note Be sure to check when bumping the version:
+ * - "versioning_userdef.c", #BLO_version_defaults_userpref_blend
+ * - "versioning_userdef.c", #do_versions_theme
+ *
+ * \note Keep this message at the bottom of the function.
+ */
{
- /* Versioning code until next subversion bump goes here. */
+ /* Keep this block, even when empty. */
+
/* Cloth internal springs */
for (Object *ob = bmain->objects.first; ob; ob = ob->id.next) {
for (ModifierData *md = ob->modifiers.first; md; md = md->next) {
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c
index a453cf8fa74..b1f70848bdc 100644
--- a/source/blender/blenloader/intern/versioning_userdef.c
+++ b/source/blender/blenloader/intern/versioning_userdef.c
@@ -164,10 +164,17 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
FROM_DEFAULT_V4_UCHAR(space_view3d.face_front);
}
- /* Versioning code until next subversion bump goes here.
- * Note: be sure to check "versioning_{BLENDER_VERSION}.c" when bumping the version.
- * Note: keep this message at the bottom of the function. */
+ /**
+ * Versioning code until next subversion bump goes here.
+ *
+ * \note Be sure to check when bumping the version:
+ * - #BLO_version_defaults_userpref_blend in this file.
+ * - "versioning_{BLENDER_VERSION}.c"
+ *
+ * \note Keep this message at the bottom of the function.
+ */
{
+ /* Keep this block, even when empty. */
}
#undef FROM_DEFAULT_V4_UCHAR
@@ -686,10 +693,16 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef)
}
/**
- * Include next version bump.
+ * Versioning code until next subversion bump goes here.
+ *
+ * \note Be sure to check when bumping the version:
+ * - #do_versions_theme in this file.
+ * - "versioning_{BLENDER_VERSION}.c"
+ *
+ * \note Keep this message at the bottom of the function.
*/
{
- /* pass */
+ /* Keep this block, even when empty. */
}
if (userdef->pixelsize == 0.0f) {