diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-29 14:32:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-29 14:32:38 +0400 |
commit | 635db3b3066b71d4c9c0f4a67d20aeff0d4b3810 (patch) | |
tree | 8ff6739fe6fadda6ed96141c024575f13e4ccf3d /source/blender/editors/space_file | |
parent | 1d9eaad73ae1ce8ddfbef68ffbf8c56ac06ac0ce (diff) |
code cleanup: add utility function BLI_path_is_rel()
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index ff7a71af8c2..878858c1acd 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -1113,7 +1113,7 @@ static void file_expand_directory(bContext *C) if (sfile->params) { /* TODO, what about // when relbase isn't valid? */ - if (G.relbase_valid && strncmp(sfile->params->dir, "//", 2) == 0) { + if (G.relbase_valid && BLI_path_is_rel(sfile->params->dir)) { BLI_path_abs(sfile->params->dir, G.main->name); } else if (sfile->params->dir[0] == '~') { |