Fix: reading library files with option "Relative Paths" set, whilst library

was read already AND relative, caused the path for libraries to corrupt...

Error caused big headaches in studio Orange... :)
This commit is contained in:
2005-12-11 22:03:04 +00:00
parent e0d20e00ce
commit e58eecbea5

View File

@@ -437,11 +437,14 @@ void BLI_makestringcode(const char *relfile, char *file)
char * q;
char * lslash;
int len=0;
char temp[FILE_MAXDIR+FILE_MAXFILE];
char res[FILE_MAXDIR+FILE_MAXFILE];
/* if file is already relative, bail out */
if(file[0]=='/' && file[1]=='/') return;
strcpy(temp, relfile);
#ifdef WIN32
if (strlen(file) > 2) {
if ( temp[1] == ':' && file[1] == ':' && temp[0] != file[0] )