Browse Source

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
adario 15 years ago
parent
commit
7877f3fe6f
2 changed files with 4 additions and 3 deletions
  1. 3 2
      code/FileSystemFilter.h
  2. 1 1
      revision.h

+ 3 - 2
code/FileSystemFilter.h

@@ -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 + "\'");
 	}

+ 1 - 1
revision.h

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