[Bf-blender-cvs] [b44173754f0] xr-actions-D9124: Fix condition for processing xr actions.

Peter Kim noreply at git.blender.org
Tue Oct 13 14:45:00 CEST 2020


Commit: b44173754f0a504132dd1e35cd8f5a94ad285be4
Author: Peter Kim
Date:   Thu Oct 8 16:26:06 2020 +0900
Branches: xr-actions-D9124
https://developer.blender.org/rBb44173754f0a504132dd1e35cd8f5a94ad285be4

Fix condition for processing xr actions.

===================================================================

M	source/blender/windowmanager/xr/intern/wm_xr.c

===================================================================

diff --git a/source/blender/windowmanager/xr/intern/wm_xr.c b/source/blender/windowmanager/xr/intern/wm_xr.c
index 9b34232daf3..501b39fd281 100644
--- a/source/blender/windowmanager/xr/intern/wm_xr.c
+++ b/source/blender/windowmanager/xr/intern/wm_xr.c
@@ -133,7 +133,7 @@ bool wm_xr_events_handle(wmWindowManager *wm)
     GHOST_XrEventsHandle(wm->xr.runtime->context);
 
     /* Process OpenXR action events and dispatch to XR surface / window queues. */
-    if (WM_xr_session_exists) {
+    if (WM_xr_session_is_ready(&wm->xr)) {
       wm_xr_session_actions_update(&wm->xr);
     }



More information about the Bf-blender-cvs mailing list