You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Add OpenXR 1.1 support
This commit is contained in:
@@ -79,7 +79,14 @@ Ref<OpenXRAction> OpenXRIPBinding::get_action() const {
|
||||
}
|
||||
|
||||
void OpenXRIPBinding::set_binding_path(const String &p_path) {
|
||||
binding_path = p_path;
|
||||
OpenXRInteractionProfileMetadata *pmd = OpenXRInteractionProfileMetadata::get_singleton();
|
||||
if (pmd) {
|
||||
binding_path = pmd->check_path_name(p_path);
|
||||
} else {
|
||||
// OpenXR not enabled, ignore checks.
|
||||
binding_path = p_path;
|
||||
}
|
||||
|
||||
emit_changed();
|
||||
}
|
||||
|
||||
@@ -244,7 +251,7 @@ void OpenXRInteractionProfile::set_interaction_profile_path(const String &p_inpu
|
||||
if (pmd) {
|
||||
interaction_profile_path = pmd->check_profile_name(p_input_profile_path);
|
||||
} else {
|
||||
// OpenXR module not enabled, ignore checks.
|
||||
// OpenXR not enabled, ignore checks.
|
||||
interaction_profile_path = p_input_profile_path;
|
||||
}
|
||||
emit_changed();
|
||||
|
||||
Reference in New Issue
Block a user