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 <campbell@blender.org>2022-05-17 05:33:20 +0300
committerCampbell Barton <campbell@blender.org>2022-05-17 05:54:05 +0300
commit48c4c409b83c6ab8c00b64efb087cf0eb9bb8597 (patch)
treea60c3ff1240ecb54d8d1765f80bcf1b124b54023 /source/blender/imbuf/intern/cineon/cineonlib.c
parent5c9ab3e003d2cdca46c078c33c946ec1d7ab7626 (diff)
Fix DPX/CINEON writing full file paths into image headers on WIN32
Use back-slashes to find the file-name component on windows.
Diffstat (limited to 'source/blender/imbuf/intern/cineon/cineonlib.c')
-rw-r--r--source/blender/imbuf/intern/cineon/cineonlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/cineon/cineonlib.c b/source/blender/imbuf/intern/cineon/cineonlib.c
index 2f00a64a2cf..8312476bda0 100644
--- a/source/blender/imbuf/intern/cineon/cineonlib.c
+++ b/source/blender/imbuf/intern/cineon/cineonlib.c
@@ -393,7 +393,7 @@ LogImageFile *cineonCreate(
cineon->referenceBlack = 95.0f;
cineon->gamma = 1.7f;
- shortFilename = strrchr(filepath, '/');
+ shortFilename = strrchr(filepath, PATHSEP_CHAR);
if (shortFilename == NULL) {
shortFilename = filepath;
}