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:
authorSybren A. Stüvel <sybren@blender.org>2020-09-15 13:55:44 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-09-15 13:55:44 +0300
commitfbdac74c405e2607b05b28fff8845c9f839590d6 (patch)
treec240c8c0d486a5fcad814120d6025ad4b96445cf /source/blender/blenloader
parent1555b84f6c763c81e908e49f85aa2e1fc6b0261e (diff)
Cleanup: move versioning code into "until next bump" block
A bit of versioning code was not part of the "Versioning code until next subversion bump goes here" block, making the diff of an upcoming bump harder to read. This commit just moves the code to the appropriate spot. No functional changes.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_290.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c
index 7805dbdcefa..c9cb6930da3 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -528,23 +528,6 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
- for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) {
- RigidBodyWorld *rbw = scene->rigidbody_world;
-
- if (rbw == NULL) {
- continue;
- }
-
- /* The substep method changed from "per second" to "per frame".
- * To get the new value simply divide the old bullet sim fps with the scene fps.
- */
- rbw->substeps_per_frame /= FPS;
-
- if (rbw->substeps_per_frame <= 0) {
- rbw->substeps_per_frame = 1;
- }
- }
-
/**
* Versioning code until next subversion bump goes here.
*
@@ -555,6 +538,23 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
* \note Keep this message at the bottom of the function.
*/
{
+ for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) {
+ RigidBodyWorld *rbw = scene->rigidbody_world;
+
+ if (rbw == NULL) {
+ continue;
+ }
+
+ /* The substep method changed from "per second" to "per frame".
+ * To get the new value simply divide the old bullet sim fps with the scene fps.
+ */
+ rbw->substeps_per_frame /= FPS;
+
+ if (rbw->substeps_per_frame <= 0) {
+ rbw->substeps_per_frame = 1;
+ }
+ }
+
/* Set the minimum sequence interpolate for grease pencil. */
if (!DNA_struct_elem_find(fd->filesdna, "GP_Interpolate_Settings", "int", "step")) {
LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {