diff options
author | Peter Kim <pk15950@gmail.com> | 2022-05-28 11:23:27 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2022-05-28 11:23:27 +0300 |
commit | 314e5cb8899734347624ab23b458ccedab09a0dd (patch) | |
tree | 54e7587d00a805e049ed635e3c9d98b8f9eaa016 /source/blender/windowmanager/WM_api.h | |
parent | 16166f69be46e07d09a395c093eb18903b80815b (diff) |
XR: Fix controller flicker when switching action sets
This could happen when switching between custom action sets that both
had controller pose actions. Problem was that controller data is
cleared when changing action sets, and this clearing was done when
handling WM events, which always occurs after XR controller data is
updated from GHOST.
Now, instead of activating the action set immediately, delay activation
until just before the next XR actions sync.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index dda60975a96..890872a06bc 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -1700,7 +1700,7 @@ void WM_xr_action_binding_destroy(wmXrData *xr, /** * If action_set_name is NULL, then all action sets will be treated as active. */ -bool WM_xr_active_action_set_set(wmXrData *xr, const char *action_set_name); +bool WM_xr_active_action_set_set(wmXrData *xr, const char *action_set_name, bool delayed); bool WM_xr_controller_pose_actions_set(wmXrData *xr, const char *action_set_name, |