diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-10 06:05:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-10 06:05:38 +0400 |
commit | 0d699fb46a4c230c97440036b762e068c60afd05 (patch) | |
tree | 72b41bec86f34579c2be35da52a542a409f8ebe3 /source | |
parent | 412c04347440fa5e480b69a07b20ff1399775c5b (diff) |
minor edit to previous commit, only show option to reload the file if its been saved.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index f9e93118033..406dbd8ca96 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -327,7 +327,7 @@ static int wm_read_exotic(Scene *UNUSED(scene), const char *name) /* make sure we're not trying to read a directory.... */ len = strlen(name); - if (ELEM(name[len - 1], '/', '\\')) { + if (len > 0 && ELEM(name[len - 1], '/', '\\')) { retval = BKE_READ_EXOTIC_FAIL_PATH; } else { |