Change face tracking packet members to a variant

This commit is contained in:
Sapphire
2025-06-01 10:21:47 +02:00
committed by xytovl
parent 908d21ffec
commit c2c94a57bb
5 changed files with 23 additions and 23 deletions
+2 -3
View File
@@ -278,7 +278,6 @@ struct tracking
bool is_valid;
bool is_eye_following_blendshapes_valid;
};
std::optional<fb_face2> face;
struct htc_face
{
@@ -287,14 +286,14 @@ struct tracking
bool eye_active;
bool lip_active;
};
std::optional<htc_face> face_htc;
struct pico_face
{
std::array<float, XR_BLEND_SHAPE_COUNT_PICO> weights;
bool is_valid;
};
std::optional<pico_face> face_pico;
std::variant<std::monostate, fb_face2, htc_face, pico_face> face;
};
struct trackings