* Made the Ipo editor handle colours initialise from old files to the previously...
authorMatt Ebb <matt@mke3.net>
Fri, 5 Sep 2008 05:17:26 +0000 (05:17 +0000)
committerMatt Ebb <matt@mke3.net>
Fri, 5 Sep 2008 05:17:26 +0000 (05:17 +0000)
source/blender/src/usiblender.c

index 21bec1ec9781595ad507327e5b237b21b66aaa5c..901daf0ee582b1005ccb2ae5ac6675a16c2ee542 100644 (file)
@@ -483,9 +483,12 @@ static void init_userdef_file(void)
        if ((G.main->versionfile < 247) || (G.main->versionfile == 247 && G.main->subversionfile < 1)) {
                bTheme *btheme;
                for(btheme= U.themes.first; btheme; btheme= btheme->next) {
-                       SETCOL(btheme->tipo.handle_vertex, 0xff, 0x70, 0xff, 255);
-                       SETCOL(btheme->tipo.handle_vertex_select, 0xff, 0xff, 0x70, 255);
-                       btheme->tipo.handle_vertex_size= 3;
+                       char *col;
+                       col = btheme->tipo.vertex;
+                       SETCOL(btheme->tipo.handle_vertex, col[0], col[1], col[2], 255);
+                       col = btheme->tipo.vertex_select;
+                       SETCOL(btheme->tipo.handle_vertex_select, col[0], col[1], col[2], 255);
+                       btheme->tipo.handle_vertex_size= btheme->tipo.vertex_size;
                }
        }