1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

OpenXR: Fix pose recenter signal to be omitted properly

This commit is contained in:
Bastiaan Olij
2024-11-13 14:20:06 +11:00
parent cb411fa960
commit 3de62b8b1b
3 changed files with 13 additions and 5 deletions

View File

@@ -2036,8 +2036,9 @@ bool OpenXRAPI::poll_events() {
if (local_floor_emulation.enabled) {
local_floor_emulation.should_reset_floor_height = true;
}
if (event->poseValid && xr_interface) {
xr_interface->on_pose_recentered();
if (xr_interface) {
xr_interface->on_reference_space_change_pending();
}
} break;
case XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED: {