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>2011-04-08 10:47:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-08 10:47:41 +0400
commited7f0c603ff3226b4f87f018700fd02fc9618f13 (patch)
tree87fb4e6dde0e1ece8a92d62844e2f8d8eac033d9 /source/blender/blenlib
parente6c30a41ea87bee8d08cffd7f9c25def6c49a06b (diff)
fix [#26803] Libs paths are case sensitive in windows
another case was exposed by this report, making relative paths wasn't case insensitive on windows.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/path_util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index bc5e20fb3b2..0d3b17ace4b 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -456,7 +456,12 @@ void BLI_path_rel(char *file, const char *relfile)
char *p= temp;
char *q= file;
- while (*p == *q) {
+#ifdef WIN32
+ while (tolower(*p) == tolower(*q))
+#else
+ while (*p == *q)
+#endif
+ {
++p; ++q;
/* dont search beyond the end of the string
* in the rare case they match */