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>2007-12-20 13:52:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-12-20 13:52:56 +0300
commita637aca44ab6b19e054c605ff412be59d7828563 (patch)
tree6270284a553f26845305d0cfd699a2682dbe8fb7 /source/blender/blenlib
parent9b89abaa8b3689383a8c557981a482d9b1156165 (diff)
make relative paths wasnt working, also disallowed it when the blend file isnt saved
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/bpath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/bpath.c b/source/blender/blenlib/intern/bpath.c
index 598b5720b65..4e394bb7fae 100644
--- a/source/blender/blenlib/intern/bpath.c
+++ b/source/blender/blenlib/intern/bpath.c
@@ -345,7 +345,7 @@ void makeFilesRelative(int *tot, int *changed, int *failed, int *linked) {
filepath = BLI_bpathIterator_getPath(&bpi);
libpath = BLI_bpathIterator_getLib(&bpi);
- if(strncmp(filepath, "//", 2)==0) {
+ if(strncmp(filepath, "//", 2)) {
if (libpath) { /* cant make relative if we are kibrary - TODO, LOG THIS */
(*linked)++;
} else { /* local data, use the blend files path */
@@ -356,10 +356,10 @@ void makeFilesRelative(int *tot, int *changed, int *failed, int *linked) {
} else {
/* safe to to check the length */
if(strncmp(filepath_relative, "//", 2)==0) {
- (*failed)++;
- } else {
strcpy(filepath, filepath_relative);
(*changed)++;
+ } else {
+ (*failed)++;
}
}
}