diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-04 16:45:58 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-04 16:48:12 +0300 |
commit | 7bd5ba501944a39c10975087a69f006065a0e75f (patch) | |
tree | df06c7e44f7b3a7932f931eca294c726c21e0564 /source/blender/blenloader/intern/versioning_userdef.c | |
parent | 528a8bd78833a3b7f8780770cd3db8e69e402dee (diff) |
Fix T57062: missing preview range drawing in graph editor.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_userdef.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_userdef.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index 00a07ae7b80..cf5087b848b 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -27,6 +27,7 @@ #include <string.h> +#include "BLI_math.h" #include "BLI_utildefines.h" #include "DNA_userdef_types.h" @@ -50,6 +51,12 @@ static void do_versions_theme(UserDef *userdef, bTheme *btheme) if (!USER_VERSION_ATLEAST(280, 20)) { memcpy(btheme, &U_theme_default, sizeof(*btheme)); } + + if (!USER_VERSION_ATLEAST(280, 25)) { + copy_v4_v4_char(btheme->tact.anim_preview_range, btheme->tact.anim_active); + copy_v4_v4_char(btheme->tnla.anim_preview_range, btheme->tnla.anim_active); + copy_v4_v4_char(btheme->tipo.anim_preview_range, btheme->tact.anim_active); + } #undef USER_VERSION_ATLEAST } |