Move assert in body tracker destructor

This commit is contained in:
Patrick Nicolas committed 2025-06-09 19:26:30 +02:00
1 parent fedd7917db
commit 24c38e2a02
1 file changed
+3 -1
+3 -1
View File
@@ -58,10 +58,12 @@ void xr::fb_body_tracker::start(bool full_body, bool hip)
}
void xr::fb_body_tracker::stop()
{
assert(xrDestroyBodyTrackerFB);
full_body = false;
if (handle)
{
assert(xrDestroyBodyTrackerFB);
CHECK_XR(xrDestroyBodyTrackerFB(std::exchange(handle, nullptr)));
}
}
std::optional<std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_headset::body_tracking::max_tracked_poses>> xr::fb_body_tracker::locate_spaces(XrTime time, XrSpace reference)