Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kim <pk15950@gmail.com>2021-10-12 10:13:24 +0300
committerPeter Kim <pk15950@gmail.com>2021-10-12 10:13:24 +0300
commitcfa59b3fabe729e49a57154ce21c5a4b88aa5812 (patch)
tree9ad021d418f46bc8ff125156714e034cd66b4c41 /source/blender/windowmanager/xr/intern/wm_xr_session.c
parenteb8afc39f858ca397e53fc8cd36b3ebc0024476e (diff)
Cleanup: remove unused parameter
Diffstat (limited to 'source/blender/windowmanager/xr/intern/wm_xr_session.c')
-rw-r--r--source/blender/windowmanager/xr/intern/wm_xr_session.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/windowmanager/xr/intern/wm_xr_session.c b/source/blender/windowmanager/xr/intern/wm_xr_session.c
index 4c37253f457..88bc5c45c91 100644
--- a/source/blender/windowmanager/xr/intern/wm_xr_session.c
+++ b/source/blender/windowmanager/xr/intern/wm_xr_session.c
@@ -985,7 +985,6 @@ static wmXrActionData *wm_xr_session_event_create(const char *action_set_name,
/* Dispatch events to window queues. */
static void wm_xr_session_events_dispatch(wmXrData *xr,
- const XrSessionSettings *UNUSED(settings),
GHOST_XrContextHandle xr_context,
wmXrActionSet *action_set,
wmXrSessionState *session_state,
@@ -1084,11 +1083,10 @@ void wm_xr_session_actions_update(wmWindowManager *wm)
/* Only update controller data and dispatch events for active action set. */
if (active_action_set) {
- const XrSessionSettings *settings = &xr->session_settings;
wmWindow *win = wm_xr_session_root_window_or_fallback_get(wm, xr->runtime);
if (active_action_set->controller_grip_action && active_action_set->controller_aim_action) {
- wm_xr_session_controller_data_update(settings,
+ wm_xr_session_controller_data_update(&xr->session_settings,
active_action_set->controller_grip_action,
active_action_set->controller_aim_action,
state);
@@ -1100,7 +1098,7 @@ void wm_xr_session_actions_update(wmWindowManager *wm)
xr->runtime->area = ED_area_offscreen_create(win, SPACE_VIEW3D);
}
- wm_xr_session_events_dispatch(xr, settings, xr_context, active_action_set, state, win);
+ wm_xr_session_events_dispatch(xr, xr_context, active_action_set, state, win);
}
}
}