Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2025-06-10 11:29:14 +00:00
6 changed files with 29 additions and 25 deletions
+1 -10
View File
@@ -229,16 +229,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
if (config.check_feature(feature::body_tracking))
{
if (application::get_fb_body_tracking_supported())
{
auto num_trackers = config.fb_lower_body
? std::ranges::count_if(xr::fb_body_tracker::joint_whitelist, [&config](auto joint) {
return config.fb_hip || joint != XR_FULL_BODY_JOINT_HIPS_META;
})
: std::ranges::count_if(xr::fb_body_tracker::joint_whitelist, [](auto joint) {
return joint != XR_FULL_BODY_JOINT_HIPS_META && joint < XR_FULL_BODY_JOINT_LEFT_UPPER_LEG_META;
});
info.num_generic_trackers = num_trackers;
}
info.num_generic_trackers = xr::fb_body_tracker::get_whitelisted_joints(config.fb_lower_body, config.fb_hip).size();
else if (application::get_pico_body_tracking_supported())
info.num_generic_trackers = xr::pico_body_tracker::joint_whitelist.size();
}
+3 -2
View File
@@ -272,8 +272,9 @@ void scenes::stream::tracking()
if (application::get_fb_body_tracking_supported())
{
body_tracking = body_fb;
// We start the tracker on connection because there are toggleable settings.
// TODO maybe handle reconnection better, if the settings are changed the tracker count will mismatch and stuff might break
// TODO maybe handle reconnection better, if the settings are changed since
// last connection to running server, the tracker count will mismatch and
// stuff might break
application::get_fb_body_tracker().stop();
application::get_fb_body_tracker().start(config.fb_lower_body, config.fb_hip);
}