From 29b445e9844ef2ebea6d5057c0efd1e769f47ce1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 1 Jul 2025 21:26:24 +0200 Subject: [PATCH 1/2] Don't build common when only building openxr lib --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94cafdf2..07cdb545 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -296,7 +296,9 @@ FetchContent_Declare(monado ) add_subdirectory(external) -add_subdirectory(common) +if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_SERVER OR WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_DISSECTOR) + add_subdirectory(common) +endif() if (WIVRN_BUILD_CLIENT) add_subdirectory(client) From a2837904cc58759fe403333f24323d19248f2a1b Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Tue, 24 Jun 2025 15:59:36 +0200 Subject: [PATCH 2/2] Fix ray visibility --- client/scenes/input_profile.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/client/scenes/input_profile.cpp b/client/scenes/input_profile.cpp index 86b3482c..0a0299ca 100644 --- a/client/scenes/input_profile.cpp +++ b/client/scenes/input_profile.cpp @@ -334,8 +334,6 @@ static void set_clipping_planes(node_handle node, std::span clipping_ } } - node->visible = true; - for (auto child_node: node.children()) { size_t nb_clipping_planes = std::min(child_node->clipping_planes.size(), clipping_planes.size()); @@ -360,16 +358,12 @@ void input_profile::apply(XrSpace world_space, XrTime predicted_display_time, bo if ((space == xr::spaces::grip_left or space == xr::spaces::aim_left) and hide_left) { node->visible = false; - continue; } - - if ((space == xr::spaces::grip_right or space == xr::spaces::aim_right) and hide_right) + else if ((space == xr::spaces::grip_right or space == xr::spaces::aim_right) and hide_right) { node->visible = false; - continue; } - - if (auto location = application::locate_controller(application::space(space), world_space, predicted_display_time); location) + else if (auto location = application::locate_controller(application::space(space), world_space, predicted_display_time); location) { node->visible = true;