diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-03-09 20:36:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-03-09 20:36:23 +0300 |
commit | 1708ac07231cd222f269d3c0ddb9e22aba7aeec4 (patch) | |
tree | f4e8736ae34fac2e614f127d4ceae24a9454410a /source/blender/editors/space_image | |
parent | 26272d4c58de0b80056092de190bb35b44532f2e (diff) |
rename some functions to use easier to understand names.
'BLI_makestringcode' --> 'BLI_path_rel'
'BLI_convertstringcwd' --> 'BLI_path_cwd'
'BLI_convertstringframe' --> 'BLI_path_frame'
'BLI_convertstringframe_range' --> 'BLI_path_frame_range'
'BLI_make_cwdpath' --> 'BLI_path_cwd'
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/image_ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index 59d6b2e30b7..ed75b6dcef0 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -817,7 +817,7 @@ static void save_image_doit(bContext *C, SpaceImage *sima, Scene *scene, wmOpera if (ibuf) { int relative= RNA_boolean_get(op->ptr, "relative_path"); - BLI_convertstringcode(path, G.sce); + BLI_path_abs(path, G.sce); if(scene->r.scemode & R_EXTENSION) { BKE_add_image_extension(path, sima->imtypenr); @@ -837,7 +837,7 @@ static void save_image_doit(bContext *C, SpaceImage *sima, Scene *scene, wmOpera RE_WriteRenderResult(rr, path, scene->r.quality); if(relative) - BLI_makestringcode(G.sce, path); /* only after saving */ + BLI_path_rel(path, G.sce); /* only after saving */ BLI_strncpy(ima->name, path, sizeof(ima->name)); BLI_strncpy(ibuf->name, path, sizeof(ibuf->name)); @@ -855,7 +855,7 @@ static void save_image_doit(bContext *C, SpaceImage *sima, Scene *scene, wmOpera char *name; if(relative) - BLI_makestringcode(G.sce, path); /* only after saving */ + BLI_path_rel(path, G.sce); /* only after saving */ BLI_strncpy(ima->name, path, sizeof(ima->name)); BLI_strncpy(ibuf->name, path, sizeof(ibuf->name)); @@ -1094,7 +1094,7 @@ static int save_sequence_exec(bContext *C, wmOperator *op) char name[FILE_MAX]; BLI_strncpy(name, ibuf->name, sizeof(name)); - BLI_convertstringcode(name, G.sce); + BLI_path_abs(name, G.sce); if(0 == IMB_saveiff(ibuf, name, IB_rect | IB_zbuf | IB_zbuffloat)) { BKE_reportf(op->reports, RPT_ERROR, "Could not write image %s.", name); |