diff options
author | Julian Eisel <julian@blender.org> | 2020-09-16 16:51:44 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-16 16:56:39 +0300 |
commit | 1a4fc6dcd67b3ad4a7490ba9db02881b3edb6263 (patch) | |
tree | b595bb5a330ac201b463342143de1de5f073dcae /source/blender/blenloader | |
parent | c9c0f893073300d6898114cfc6cacd563c630750 (diff) |
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 da95d1d851b4.
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.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_290.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index 7f2b1714245..8a5f77fac1d 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -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); } |