st/oxr: Fixes getting current interaction profile paths

oxr_session's active profile paths where not being cleared on attachments/
updates, causing calls to `xrGetCurrentInteractionPath` to return valid
paths of particular hand that where previously bound and became unbound.
This commit is contained in:
Korcan Hussein authored and Simon Zeni committed 2024-02-08 15:52:37 +00:00
1 parent a40599d315
commit cfa545b43c
1 file changed
+2
+2
View File
@@ -1667,6 +1667,7 @@ oxr_session_attach_action_sets(struct oxr_logger *log,
}
#define POPULATE_PROFILE(X) \
sess->X = XR_NULL_PATH; \
if (profiles.X != NULL) { \
sess->X = profiles.X->path; \
oxr_event_push_XrEventDataInteractionProfileChanged(log, sess); \
@@ -1691,6 +1692,7 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
}
#define POPULATE_PROFILE(X) \
sess->X = XR_NULL_PATH; \
if (profiles.X != NULL) { \
sess->X = profiles.X->path; \
oxr_event_push_XrEventDataInteractionProfileChanged(log, sess); \