From 187f06f5ed16472ff0a0f32e3e1b9e96d4af71fe Mon Sep 17 00:00:00 2001 From: yuckinus <40965122+yuckinus@users.noreply.github.com> Date: Tue, 9 Dec 2025 22:05:14 +0200 Subject: [PATCH] Small fixes - fixed mixed separators in open file path return (e.g.: c:\dir/file.ext) - optimize point_clouds/update_poses_from_RESSO - step2 / fixes issue with CP/GCP GUIs not showing up --- .../multi_view_tls_registration_gui.cpp | 15 +++++++++------ core/src/pfd_wrapper.cpp | 5 ++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/apps/multi_view_tls_registration/multi_view_tls_registration_gui.cpp b/apps/multi_view_tls_registration/multi_view_tls_registration_gui.cpp index 64527c62..6fcc7b04 100644 --- a/apps/multi_view_tls_registration/multi_view_tls_registration_gui.cpp +++ b/apps/multi_view_tls_registration/multi_view_tls_registration_gui.cpp @@ -1491,6 +1491,8 @@ std::string saveSession() } else{ std::cout << "saving canceled" << std::endl; + + return ""; } } @@ -2135,8 +2137,6 @@ void display() } int prev_index_pose = session.control_points.index_pose; - if (session.control_points.is_imgui) - session.control_points.imgui(session.point_clouds_container, rotation_center); if (prev_index_pose != session.control_points.index_pose) { @@ -2162,15 +2162,18 @@ void display() camera_transition_active = true; } - if (session.ground_control_points.is_imgui) - session.ground_control_points.imgui(session.point_clouds_container); - ImGui_ImplOpenGL2_NewFrame(); ImGui_ImplGLUT_NewFrame(); ImGui::NewFrame(); ShowMainDockSpace(); + if (session.control_points.is_imgui) + session.control_points.imgui(session.point_clouds_container, rotation_center); + + if (session.ground_control_points.is_imgui) + session.ground_control_points.imgui(session.point_clouds_container); + if (!session.control_points.is_imgui) { if (!is_loop_closure_gui) @@ -2547,7 +2550,7 @@ void display() save_all_to_las(session, output_file_name, false); } if (ImGui::IsItemHovered()) - ImGui::SetTooltip("To export in full resolution, close the program and open again, unmark 'simple_gui', unmark 'downsample during load'"); + ImGui::SetTooltip("To export in full resolution, close the program and open again and unmark 'downsample during load' before loading session"); if (ImGui::MenuItem("Separate global scans (laz)")) { diff --git a/core/src/pfd_wrapper.cpp b/core/src/pfd_wrapper.cpp index 2d733185..385cbc13 100644 --- a/core/src/pfd_wrapper.cpp +++ b/core/src/pfd_wrapper.cpp @@ -8,10 +8,9 @@ namespace mandeye::fd{ { auto sel = OpenFileDialog(title, filter, false); if (sel.empty()) - { return ""; - } - return sel.back(); + + return std::filesystem::path(sel.back()).lexically_normal().string(); } std::vector OpenFileDialog(const std::string& title, const std::vector&filter, bool multiselect)