diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-19 13:19:58 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-19 13:19:58 +0400 |
commit | c6a2f42dba65e82e32eadf0a8867a4bcd3e8b08f (patch) | |
tree | a68427c9ef08ba6c97b48db296ec6a1515912530 /source/blender/src/usiblender.c | |
parent | c19d84f89e442a283ea3dcd4d80fb113b52d10bd (diff) |
- simplified Theme API. No need to include 'current active area' anymore.
like: BIF_ThemeColor(TH_GRID); will be sufficient. Blender does the rest.
- fixed bug in CTRL-X (reload home file) with themes
- fixed bug in horizontal alignment of different height panels. Seems also
to solve the drawing error with constraints...
Diffstat (limited to 'source/blender/src/usiblender.c')
-rw-r--r-- | source/blender/src/usiblender.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index 8eb130e1225..00dd129084c 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -142,7 +142,6 @@ void BIF_read_file(char *name) int BIF_read_homefile(void) { - bTheme *btheme; char tstr[FILE_MAXDIR+FILE_MAXFILE], scestr[FILE_MAXDIR]; char *home= BLI_gethome(); int success; @@ -164,7 +163,9 @@ int BIF_read_homefile(void) success = BKE_read_file_from_memory(datatoc_B_blend, datatoc_B_blend_size, NULL); } strcpy(G.sce, scestr); - + + BIF_InitTheme(); // sets default again + if (success) { G.save_over = 0; @@ -490,7 +491,6 @@ void BIF_init(void) init_draw_rects(); /* drawobject.c */ init_gl_stuff(); /* drawview.c */ BIF_read_homefile(); - BIF_InitThemeColors(); /* after read home file! */ readBlog(); strcpy(G.lib, G.sce); |