Fix versioning code after FCurves versioning not executed

There must not be any return directly in our versioning patches. It
would return from the entire versioning function.
Mistake in da95d1d851.

As a result, when opening old files with animation data, the versioning
for the new collection color tagging wouldn't run, and all collections
would get the first color assigned.
This commit is contained in:
Julian Eisel 2020-09-16 15:51:44 +02:00
parent c9c0f89307
commit 1a4fc6dcd6
1 changed files with 1 additions and 1 deletions

View File

@ -646,7 +646,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
for (FCurve *fcu = act->curves.first; fcu; fcu = fcu->next) {
/* Only need to fix Bezier curves with at least 2 keyframes. */
if (fcu->totvert < 2 || fcu->bezt == NULL) {
return;
continue;
}
do_versions_291_fcurve_handles_limit(fcu);
}