mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
t/common: fix valve index hand tracker crash when SLAM tracking is not enabled
This commit is contained in:
parent
ed618ad979
commit
99c938a1df
|
@ -385,7 +385,7 @@ valve_index_setup_visual_trackers(struct lighthouse_system *lhs,
|
||||||
// Initialize hand tracker
|
// Initialize hand tracker
|
||||||
struct xrt_slam_sinks *hand_sinks = NULL;
|
struct xrt_slam_sinks *hand_sinks = NULL;
|
||||||
struct xrt_device *hand_devices[2] = {NULL};
|
struct xrt_device *hand_devices[2] = {NULL};
|
||||||
struct xrt_hand_masks_sink *masks_sink = slam_sinks->hand_masks;
|
struct xrt_hand_masks_sink *masks_sink = (slam_enabled ? slam_sinks->hand_masks : NULL);
|
||||||
if (hand_enabled) {
|
if (hand_enabled) {
|
||||||
bool success = valve_index_hand_track( //
|
bool success = valve_index_hand_track( //
|
||||||
lhs, //
|
lhs, //
|
||||||
|
|
Loading…
Reference in a new issue