diff options
Diffstat (limited to 'source/blender/blenloader')
-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 d53959a1949..3cc2372a2b0 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -241,6 +241,13 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme) } FROM_DEFAULT_V4_UCHAR(space_properties.match); + + /* New grid theme color defaults are the same as the existing background colors, + * so they are copied to limit disruption. */ + copy_v3_v3_uchar(btheme->space_clip.grid, btheme->space_clip.back); + btheme->space_clip.grid[3] = 255.0f; + + copy_v3_v3_uchar(btheme->space_node.grid, btheme->space_node.back); } #undef FROM_DEFAULT_V4_UCHAR |