* Patch #5337 from Juho: Ipo vertex size theme setting
(with some small modifications)
This commit is contained in:
@@ -1092,7 +1092,7 @@ static void draw_ipovertices(int sel)
|
||||
|
||||
if(G.f & G_PICKSEL) return;
|
||||
|
||||
glPointSize(3.0);
|
||||
glPointSize(BIF_GetThemeValuef(TH_VERTEX_SIZE));
|
||||
|
||||
ei= G.sipo->editipo;
|
||||
for(nr=0; nr<G.sipo->totipo; nr++, ei++) {
|
||||
@@ -2624,4 +2624,3 @@ EditIpo *select_proj_ipo(rctf *rectf, int event)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -421,6 +421,7 @@ void BIF_InitTheme(void)
|
||||
SETCOL(btheme->tipo.vertex, 0xff, 0x70, 0xff, 255);
|
||||
SETCOL(btheme->tipo.vertex_select, 0xff, 0xff, 0x70, 255);
|
||||
SETCOL(btheme->tipo.hilite, 0x60, 0xc0, 0x40, 255);
|
||||
btheme->tipo.vertex_size= 3;
|
||||
|
||||
/* space file */
|
||||
/* to have something initialized */
|
||||
@@ -597,6 +598,7 @@ char *BIF_ThemeColorsPup(int spacetype)
|
||||
str += sprintf(str, "Ipo Channels %%x%d|", TH_SHADE2);
|
||||
str += sprintf(str, "Vertex %%x%d|", TH_VERTEX);
|
||||
str += sprintf(str, "Vertex Selected %%x%d|", TH_VERTEX_SELECT);
|
||||
str += sprintf(str, "Vertex Size %%x%d|", TH_VERTEX_SIZE);
|
||||
break;
|
||||
case SPACE_FILE:
|
||||
str += sprintf(str, "Selected file %%x%d", TH_HILITE);
|
||||
|
||||
@@ -345,6 +345,14 @@ static void init_userdef_file(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (G.main->versionfile <= 242) {
|
||||
bTheme *btheme;
|
||||
for(btheme= U.themes.first; btheme; btheme= btheme->next) {
|
||||
if(btheme->tipo.vertex_size == 0) {
|
||||
btheme->tipo.vertex_size= 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (U.undosteps==0) U.undosteps=32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user