Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-17 17:13:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-17 17:13:24 +0300
commita0a1fc89387f0f1396b5e4320c2dd4a6fedd1c25 (patch)
treebc5afe62e3b23d19cf5dbe21ee9e87839a88827d /source/blender/windowmanager
parent6453814ec033feb4549a9d565efc4ac968b2ac13 (diff)
Cleanup: BLI path extension API
Use BLI_path_extension_* prefix.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index d110f7cd3ed..c10b6638608 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1087,7 +1087,7 @@ bool write_crash_blend(void)
int fileflags = G.fileflags & ~(G_FILE_HISTORY); /* don't do file history on crash file */
BLI_strncpy(path, BKE_main_blendfile_path_from_global(), sizeof(path));
- BLI_replace_extension(path, sizeof(path), "_crash.blend");
+ BLI_path_extension_replace(path, sizeof(path), "_crash.blend");
if (BLO_write_file(G_MAIN, path, fileflags, NULL, NULL)) {
printf("written: %s\n", path);
return 1;
@@ -2116,9 +2116,9 @@ static bool blend_save_check(bContext *UNUSED(C), wmOperator *op)
char filepath[FILE_MAX];
RNA_string_get(op->ptr, "filepath", filepath);
if (!BLO_has_bfile_extension(filepath)) {
- /* some users would prefer BLI_replace_extension(),
+ /* some users would prefer BLI_path_extension_replace(),
* we keep getting nitpicking bug reports about this - campbell */
- BLI_ensure_extension(filepath, FILE_MAX, ".blend");
+ BLI_path_extension_ensure(filepath, FILE_MAX, ".blend");
RNA_string_set(op->ptr, "filepath", filepath);
return true;
}