summaryrefslogtreecommitdiffstats
path: root/modules/openxr/action_map/openxr_interaction_profile.cpp
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2023-07-17 16:36:01 +1000
committerBastiaan Olij <mux213@gmail.com>2023-08-30 10:25:35 +1000
commit3a89bb388d11f0be015d1413df8a2d79b8c83d83 (patch)
tree3d22a955cfa1a6ff4ed6348354e4e0f2573a79a7 /modules/openxr/action_map/openxr_interaction_profile.cpp
parentd2f76e87869b892d7992696e0b381c5afebe3d0d (diff)
downloadredot-engine-3a89bb388d11f0be015d1413df8a2d79b8c83d83.tar.gz
Change to new PICO interaction profiles
Diffstat (limited to 'modules/openxr/action_map/openxr_interaction_profile.cpp')
-rw-r--r--modules/openxr/action_map/openxr_interaction_profile.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/openxr/action_map/openxr_interaction_profile.cpp b/modules/openxr/action_map/openxr_interaction_profile.cpp
index 07490f5841..65ee652732 100644
--- a/modules/openxr/action_map/openxr_interaction_profile.cpp
+++ b/modules/openxr/action_map/openxr_interaction_profile.cpp
@@ -126,7 +126,10 @@ Ref<OpenXRInteractionProfile> OpenXRInteractionProfile::new_profile(const char *
}
void OpenXRInteractionProfile::set_interaction_profile_path(const String p_input_profile_path) {
- interaction_profile_path = p_input_profile_path;
+ OpenXRInteractionProfileMetadata *pmd = OpenXRInteractionProfileMetadata::get_singleton();
+ ERR_FAIL_NULL(pmd);
+
+ interaction_profile_path = pmd->check_profile_name(p_input_profile_path);
emit_changed();
}