diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-08-25 14:47:11 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-08-25 14:54:35 +0400 |
commit | b7c13da8cc3ac4eadcb914b6584f14fd7568ea25 (patch) | |
tree | 46e3cd702bf0a286670fc97c5d9f1d16aed6722a /source/blender/editors/interface/resources.c | |
parent | ba35761d331e89dbe6650b10d7a22ebe4636daa8 (diff) |
Move theme updates for new handles colors & co into last versioned block.
Also, tweaked versionning for lnors color - we can add immediately versionning code,
using future next subversion, even without actually switching to this subversion now.
Avoids 'empty' versionning blocks floating around, and often forgotten when actually
raising version numbers!
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index c2b234df3bf..0879f335c68 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -2447,16 +2447,6 @@ void init_userdef_do_versions(void) } } - { - bTheme *btheme; - for (btheme = U.themes.first; btheme; btheme = btheme->next) { - ui_theme_space_init_handles_color(&btheme->tclip); - ui_theme_space_init_handles_color(&btheme->tima); - btheme->tima.handle_vertex_size = 5; - btheme->tclip.handle_vertex_size = 5; - } - } - if (U.versionfile < 271 || (U.versionfile == 271 && U.subversionfile < 5)) { bTheme *btheme; @@ -2479,10 +2469,15 @@ void init_userdef_do_versions(void) for (btheme = U.themes.first; btheme; btheme = btheme->next) { btheme->tui.wcol_pie_menu = wcol_pie_menu; + + ui_theme_space_init_handles_color(&btheme->tclip); + ui_theme_space_init_handles_color(&btheme->tima); + btheme->tima.handle_vertex_size = 5; + btheme->tclip.handle_vertex_size = 5; } } - { + if (U.versionfile < 271 || (U.versionfile == 271 && U.subversionfile < 6)) { bTheme *btheme; for (btheme = U.themes.first; btheme; btheme = btheme->next) { /* check for (alpha == 0) is safe, then color was never set */ |