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:
authorCampbell Barton <ideasman42@gmail.com>2008-01-19 02:31:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-01-19 02:31:18 +0300
commit31f14862f7d058df9c31a2ff8edd81c679c96c31 (patch)
treec04881966eba258e95cee374c3a779fb758e9a77 /source/blender/src/header_filesel.c
parent4ffd8d2a2808171d3cb54c408b2afb980e8db676 (diff)
don't display relative paths button when loading files.
this was silly anyway since it always gave an error.
Diffstat (limited to 'source/blender/src/header_filesel.c')
-rw-r--r--source/blender/src/header_filesel.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/src/header_filesel.c b/source/blender/src/header_filesel.c
index 999fa2733af..7591a6e7e21 100644
--- a/source/blender/src/header_filesel.c
+++ b/source/blender/src/header_filesel.c
@@ -136,10 +136,13 @@ void file_buttons(void)
uiDefIconButBitS(block, TOG, FILE_HIDE_DOT, B_RELOADDIR, ICON_GHOST,xco+=XIC,0,XIC,YIC, &sfile->flag, 0, 0, 0, 0, "Hides dot files");
uiBlockEndAlign(block);
- uiDefButBitS(block, TOG, FILE_STRINGCODE, 0, "Relative Paths", xco+=XIC+20,0,100,YIC, &sfile->flag, 0, 0, 0, 0, "Makes sure returned paths are relative to the current .blend file");
-
- xco+=90;
-
+ if(sfile->type==FILE_BLENDER) {
+ xco+=20;
+ } else {
+ uiDefButBitS(block, TOG, FILE_STRINGCODE, 0, "Relative Paths", xco+=XIC+20,0,100,YIC, &sfile->flag, 0, 0, 0, 0, "Makes sure returned paths are relative to the current .blend file");
+ xco+=90;
+ }
+
if(sfile->type==FILE_LOADLIB) {
uiBlockBeginAlign(block);
uiDefButBitS(block, TOGN, FILE_LINK, B_REDR, "Append", xco+=XIC,0,100,YIC, &sfile->flag, 0, 0, 0, 0, "Copies selected data into current project");