diff options
Diffstat (limited to 'source/blender/blenlib/intern/bpath.c')
-rw-r--r-- | source/blender/blenlib/intern/bpath.c | 6 |
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)++; } } } |