You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Properly load multiple action sets in XR
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user