This commit is contained in:
k-a-z-u
2018-04-04 10:14:40 +02:00
10 changed files with 168 additions and 249 deletions

View File

@@ -57,7 +57,6 @@ namespace Ray3D {
scanFolder(folder);
} catch (...) {;}
}
initDone = true;
}
@@ -89,9 +88,9 @@ namespace Ray3D {
}
for (std::experimental::filesystem::directory_entry entry : std::experimental::filesystem::directory_iterator(d)) {
const std::string absFile = entry.path().native();
const std::string absFile = entry.path().string();
if (endsWith(absFile, ".obj")) {
std::string name = entry.path().filename();
std::string name = entry.path().filename().string();
name = name.substr(0, name.length() - 4); // without extension
load(absFile, name);
}