Skip to content

Commit

Permalink
Merge pull request #486 from pmcgvr/release
Browse files Browse the repository at this point in the history
Fix stripping of slashes from paths
  • Loading branch information
syoyo authored May 23, 2024
2 parents e54660f + 1bdd404 commit f03fe26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiny_gltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}

Expand Down

0 comments on commit f03fe26

Please sign in to comment.