diff options
Diffstat (limited to 'source/blender/src/header_filesel.c')
-rw-r--r-- | source/blender/src/header_filesel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/src/header_filesel.c b/source/blender/src/header_filesel.c index 3424c4b7c3d..4677202d8ae 100644 --- a/source/blender/src/header_filesel.c +++ b/source/blender/src/header_filesel.c @@ -136,9 +136,10 @@ 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 (G.relbase_valid) { + 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); |