[Bf-blender-cvs] [cfa59b3fabe] master: Cleanup: remove unused parameter
Peter Kim
noreply at git.blender.org
Tue Oct 12 09:18:55 CEST 2021
Commit: cfa59b3fabe729e49a57154ce21c5a4b88aa5812
Author: Peter Kim
Date: Tue Oct 12 16:13:24 2021 +0900
Branches: master
https://developer.blender.org/rBcfa59b3fabe729e49a57154ce21c5a4b88aa5812
Cleanup: remove unused parameter
===================================================================
M source/blender/windowmanager/xr/intern/wm_xr_session.c
===================================================================
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);
}
}
}
More information about the Bf-blender-cvs
mailing list