mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-28 23:02:30 +01:00
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:
1 parent
a40599d315
commit
cfa545b43c
1 file changed
+2
@@ -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); \
|
||||
|
||||
Reference in new issue
Block a user