diff --git a/mesh_map/src/mesh_map.cpp b/mesh_map/src/mesh_map.cpp index 80c456b1..9c0dcd3d 100644 --- a/mesh_map/src/mesh_map.cpp +++ b/mesh_map/src/mesh_map.cpp @@ -162,11 +162,10 @@ bool MeshMap::readMap() { if(!mesh_file.empty() && !mesh_part.empty()) { - if(mesh_working_file == "") { // default: mesh_working_file = mesh_file filename in this directory - mesh_working_file = fs::path(mesh_file).filename().replace_extension(".h5"); + mesh_working_file = fs::path(mesh_file).replace_extension(".h5"); } if(mesh_working_part == "")