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.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user