Blender Git Commit Log

Git Commits -> Revision 58b1a05

August 10, 2021, 01:35 (GMT)
XR: Action Binding Improvements

Provides several important improvements to the runtime action
bindings operation and internal API.

Moves input-specific action data (input thresholds, input regions,
pose offsets/spaces) from actions to more granular action bindings.
This allows a single action to be mapped to a variety of inputs,
without having to share a single input threshold, region, or space.

Also removes the need for action space creation API, as spaces for
pose actions will be automatically created with the bindings.

The correct action data for the current inputs is set by calling
xrGetCurrentInteractionProfile() to get the current profile and then
retrieving the corresponding mapped data.

Does not bring about any changes for users since only internal
runtime functionality is currently affected.

Reviewed By: Julian Eisel

Differential Revision: https://developer.blender.org/D12077

Commit Details:

Full Hash: 58b1a050bcd020231371a8b2ed73b6ee044d7a89
Parent Commit: 5ac694a
Committed By: YimingWu
Lines Changed: +654, -725

1 Added Path:

/source/blender/windowmanager/xr/intern/wm_xr_action.c (+454, -0) (View)

1 Deleted Path:

/source/blender/windowmanager/xr/intern/wm_xr_actions.c (+0, -480)

11 Modified Paths:

/intern/ghost/GHOST_C-api.h (+2, -17) (Diff)
/intern/ghost/GHOST_Types.h (+11, -13) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+5, -24) (Diff)
/intern/ghost/intern/GHOST_XrAction.cpp (+116, -72) (Diff)
/intern/ghost/intern/GHOST_XrAction.h (+30, -17) (Diff)
/intern/ghost/intern/GHOST_XRSession.cpp (+13, -74) (Diff)
/intern/ghost/intern/GHOST_XrSession.h (+2, -7) (Diff)
/source/blender/makesdna/DNA_xr_types.h (+9, -0) (Diff)
/source/blender/windowmanager/CMakeLists.txt (+1, -1) (Diff)
/source/blender/windowmanager/WM_api.h (+8, -18) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_intern.h (+3, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021