summaryrefslogtreecommitdiffstats
path: root/modules/openxr/openxr_interface.cpp
diff options
context:
space:
mode:
authorFaolan <46481567+Faolan-Rad@users.noreply.github.com>2023-08-09 21:40:16 -0400
committerFaolan <46481567+Faolan-Rad@users.noreply.github.com>2023-08-09 21:40:16 -0400
commita60cf6ed6c842539895ac5a92151354dea40692f (patch)
tree145fd23627ea3662616f5881ead68156d9847573 /modules/openxr/openxr_interface.cpp
parenteca6f0eb545166708c56633152974f40f51de2be (diff)
downloadredot-engine-a60cf6ed6c842539895ac5a92151354dea40692f.tar.gz
Properly load multiple action sets in XR
Diffstat (limited to 'modules/openxr/openxr_interface.cpp')
-rw-r--r--modules/openxr/openxr_interface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/openxr/openxr_interface.cpp b/modules/openxr/openxr_interface.cpp
index 933148da87..cc2b4fa11b 100644
--- a/modules/openxr/openxr_interface.cpp
+++ b/modules/openxr/openxr_interface.cpp
@@ -555,9 +555,11 @@ bool OpenXRInterface::initialize() {
xr_server->add_tracker(head);
// attach action sets
+ Vector<RID> loaded_action_sets;
for (int i = 0; i < action_sets.size(); i++) {
- openxr_api->action_set_attach(action_sets[i]->action_set_rid);
+ loaded_action_sets.append(action_sets[i]->action_set_rid);
}
+ openxr_api->attach_action_sets(loaded_action_sets);
// make this our primary interface
xr_server->set_primary_interface(this);