diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-01-19 02:31:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-01-19 02:31:18 +0300 |
commit | 31f14862f7d058df9c31a2ff8edd81c679c96c31 (patch) | |
tree | c04881966eba258e95cee374c3a779fb758e9a77 /source/blender/src/header_imasel.c | |
parent | 4ffd8d2a2808171d3cb54c408b2afb980e8db676 (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_imasel.c')
-rw-r--r-- | source/blender/src/header_imasel.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/src/header_imasel.c b/source/blender/src/header_imasel.c index 3968cff4757..bd09416e1ba 100644 --- a/source/blender/src/header_imasel.c +++ b/source/blender/src/header_imasel.c @@ -181,9 +181,13 @@ void imasel_buttons(void) uiBlockEndAlign(block); } } - - uiDefButBitS(block, TOG, FILE_STRINGCODE, 0, "Relative Paths", xco+=XIC+20,0,100,YIC, &simasel->flag, 0, 0, 0, 0, "Makes sure returned paths are relative to the current .blend file"); - xco+=90; + + if(simasel->type==FILE_BLENDER) { + xco+=20; + } else { + uiDefButBitS(block, TOG, FILE_STRINGCODE, 0, "Relative Paths", xco+=XIC+20,0,100,YIC, &simasel->flag, 0, 0, 0, 0, "Makes sure returned paths are relative to the current .blend file"); + xco+=90; + } if(simasel->type==FILE_LOADLIB) { uiBlockBeginAlign(block); |