Only list scene file name when selecting scene from GUI

This commit is contained in:
Erik Broberg
2016-10-17 19:18:34 +02:00
parent 612980974e
commit b258c9fc54
+2 -1
View File
@@ -133,7 +133,8 @@ void SettingsEngine::initSceneFiles() {
std::string sceneDir = "${SCENE}";
std::vector<std::string> scenes = ghoul::filesystem::Directory(sceneDir).readFiles();
for (std::size_t i = 0; i < scenes.size(); ++i) {
_scenes.addOption(i, scenes[i]);
std::size_t found = scenes[i].find_last_of("/\\");
_scenes.addOption(i, scenes[i].substr(found+1));
}
// Set interaction to change ConfigurationManager and schedule the load