From 84ad4cf373ea70f1bd6235555174a20c032f5a8a Mon Sep 17 00:00:00 2001 From: Andreas Engberg Date: Thu, 7 Nov 2024 10:16:18 +0100 Subject: [PATCH] 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/..` --- modules/space/rendering/renderablefluxnodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/space/rendering/renderablefluxnodes.cpp b/modules/space/rendering/renderablefluxnodes.cpp index 17898a963c..167397084d 100644 --- a/modules/space/rendering/renderablefluxnodes.cpp +++ b/modules/space/rendering/renderablefluxnodes.cpp @@ -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;