Fixed a pathname separator issue on Mac OS X.

Class FileSystemFilter was sometimes using a backslash as pathname separator even on Mac OS X, where that character is not allowed in pathnames.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@630 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
adario 2010-03-31 14:20:25 +00:00
parent a84774cbe2
commit 7877f3fe6f
2 changed files with 4 additions and 3 deletions

View File

@ -78,10 +78,11 @@ public:
char s;
if (base.length() == 0) {
base = ".\\";
base = ".";
base += getOsSeparator();
}
else if ((s = *(base.end()-1)) != '\\' && s != '/')
base.append("\\");
base += getOsSeparator();
DefaultLogger::get()->info("Import root directory is \'" + base + "\'");
}

View File

@ -1 +1 @@
#define SVNRevision 613
#define SVNRevision 630