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:
Andreas Engberg
2024-11-07 10:16:18 +01:00
parent f4fe8bd38a
commit 84ad4cf373

View File

@@ -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;