mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-31 00:22:02 +08:00
Merge pull request #486 from pmcgvr/release
Fix stripping of slashes from paths
This commit is contained in:
commit
f03fe26579
@ -2245,7 +2245,7 @@ static std::string GetFilePathExtension(const std::string &FileName) {
|
||||
|
||||
static std::string GetBaseDir(const std::string &filepath) {
|
||||
if (filepath.find_last_of("/\\") != std::string::npos)
|
||||
return filepath.substr(0, filepath.find_last_of("/\\"));
|
||||
return filepath.substr(0, filepath.find_last_of("/\\") + 1);
|
||||
return "";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user