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_image | |
parent | 1d9eaad73ae1ce8ddfbef68ffbf8c56ac06ac0ce (diff) |
code cleanup: add utility function BLI_path_is_rel()
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/image_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index 855f92720e8..3eeae1f16de 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -1051,7 +1051,7 @@ static int image_replace_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(eve return image_replace_exec(C, op); if (!RNA_struct_property_is_set(op->ptr, "relative_path")) - RNA_boolean_set(op->ptr, "relative_path", (strncmp(sima->image->name, "//", 2)) == 0); + RNA_boolean_set(op->ptr, "relative_path", BLI_path_is_rel(sima->image->name)); image_filesel(C, op, sima->image->name); |