diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-20 13:52:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-20 13:52:56 +0300 |
commit | a637aca44ab6b19e054c605ff412be59d7828563 (patch) | |
tree | 6270284a553f26845305d0cfd699a2682dbe8fb7 /source/blender/src | |
parent | 9b89abaa8b3689383a8c557981a482d9b1156165 (diff) |
make relative paths wasnt working, also disallowed it when the blend file isnt saved
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/header_info.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index f3933507a7b..fd7495dbbbe 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -953,12 +953,14 @@ static void do_info_externalfiles(void *arg, int event) } break; case 10: /* make all paths relative */ - { + if (G.relbase_valid) { int tot,changed,failed,linked; char str[512]; makeFilesRelative(&tot, &changed, &failed, &linked); sprintf(str, "Make Relative%%t|Total files %i|Changed %i|Failed %i|Linked %i", tot, changed, failed, linked); pupmenu(str); + } else { + pupmenu("Can't set relative paths with an unsaved blend file"); } break; case 11: /* check images exist */ |