From ac7694aee05047750f955ee2fb0d62942392f6c0 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 9 Dec 2020 21:09:23 +0100 Subject: UI: Update theme to match Shader nodes category color with socket color The change to match socket color and category was already done, but it was missing versioning code to update the theme on load. Fixes T83500 (already closed as invalid, but this would solve the non-matching colors) Reviewed by Hans Goudey (HooglyBoogly) --- source/blender/blenloader/intern/versioning_userdef.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenloader/intern/versioning_userdef.c') diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index 1d85109774c..7bc11317bb4 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -255,6 +255,10 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme) FROM_DEFAULT_V4_UCHAR(space_node.nodeclass_attribute); } + if (!USER_VERSION_ATLEAST(292, 6)) { + FROM_DEFAULT_V4_UCHAR(space_node.nodeclass_shader); + } + /** * Versioning code until next subversion bump goes here. * -- cgit v1.2.3