commit | f03fe2657971332916533c03d0c8c751972df9ee | [log] [tgz] |
---|---|---|
author | Syoyo Fujita <syoyo@lighttransport.com> | Fri May 24 02:49:22 2024 +0900 |
committer | GitHub <noreply@github.com> | Fri May 24 02:49:22 2024 +0900 |
tree | 1974bee2f096ca74aef067e41e079828e4a4d370 | |
parent | e54660fbf988b85b3f39cb6a363c9562b76bdfc0 [diff] | |
parent | 1bdd404c041f9c5e4a37f3af94422115e24172c4 [diff] |
Merge pull request #486 from pmcgvr/release Fix stripping of slashes from paths
diff --git a/tiny_gltf.h b/tiny_gltf.h index e2ca5bd..e5c0d2c 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h
@@ -2245,7 +2245,7 @@ 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 ""; }