mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-18 10:59:18 -06:00
Make sure we search the the actual file name and not entire path
Caused an issue where it would not "find" the metadata if there was any '.' in any part of the path e.g., `OpenSpace-0.20.1/..`
This commit is contained in:
@@ -593,7 +593,7 @@ void RenderableFluxNodes::populateStartTimes() {
|
||||
break;
|
||||
}
|
||||
|
||||
const std::string f = filePath.string();
|
||||
const std::string f = filePath.filename().string();
|
||||
// if no file extention but word "time" in file name
|
||||
if (f.find("time") != std::string::npos && f.find('.') == std::string::npos) {
|
||||
timeFile = filePath;
|
||||
|
||||
Reference in New Issue
Block a user