Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2008-02-18 00:34:56 +0300
committerAndrea Weikert <elubie@gmx.net>2008-02-18 00:34:56 +0300
commitb7cf0ecbf6550d2c2293ea74c7c4950572c3a68f (patch)
tree14ff1e02bef5ed29d59c10db32eb795cde236d13 /source/blender/src/header_imasel.c
parentfcd78f08173564f2042dc8e574fc3dc7cee883ed (diff)
== ImageBrowser ==
added icon for 'Toggle Bookmark Area' disabled the bookmarks for databrowse allow to add path inside .blend file (could be nice to use as material library for example)
Diffstat (limited to 'source/blender/src/header_imasel.c')
-rw-r--r--source/blender/src/header_imasel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/src/header_imasel.c b/source/blender/src/header_imasel.c
index bd09416e1ba..8650d620cc0 100644
--- a/source/blender/src/header_imasel.c
+++ b/source/blender/src/header_imasel.c
@@ -139,9 +139,13 @@ void imasel_buttons(void)
cpack(0x0);
xco+=XIC+10;
- uiDefIconButBitS(block, TOG, FILE_BOOKMARKS, B_RELOADIMASELDIR, ICON_BOOKMARKS,xco+=XIC,0,XIC,YIC, &simasel->flag, 0, 0, 0, 0, "Toggles Bookmarks on/off");
- xco+=XIC+10;
+ type = simasel->type;
+
+ if (type != FILE_MAIN) {
+ uiDefIconButBitS(block, TOG, FILE_BOOKMARKS, B_RELOADIMASELDIR, ICON_BOOKMARKS,xco+=XIC,0,XIC,YIC, &simasel->flag, 0, 0, 0, 0, "Toggles Bookmarks on/off");
+ xco+=XIC+10;
+ }
xcotitle= xco;
xco+= BIF_GetStringWidth(G.font, simasel->title, (U.transopts & USER_TR_BUTTONS));
@@ -154,8 +158,6 @@ void imasel_buttons(void)
uiBlockEndAlign(block);
xco+=20;
- type = simasel->type;
-
if(!simasel->files) {
simasel->files = BIF_filelist_new();
}