Blender Git Loki

Git Commits -> Revision e844e9e

Revision e844e9e by Peter Kim (master)
August 5, 2021, 14:40 (GMT)
XR Controller Support Step 2: Action Maps

Addresses the remaining portions of T77137 (Python API for Controller
Interaction), which was partially completed by D10942.

Adds an XR "action maps" system for loading XR action data from a
Python script. Action maps are accessible via the Python API, and are used
to pass default actions to the VR session during the
xr_session_start_pre() callback.

Since action maps are stored only as runtime data, they will be
cleaned up with the rest of the VR runtime data on file read or exit.

Reviewed By: Julian Eisel, Hans Goudey

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

Commit Details:

Full Hash: e844e9e8f3bb6814e24749316003814156e2e2ce
Parent Commit: 0cff7c2
Lines Changed: +2541, -103

1 Added Path:

/source/blender/windowmanager/xr/intern/wm_xr_actionmap.c (+565, -0) (View)

13 Modified Paths:

/intern/ghost/GHOST_C-api.h (+15, -1) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+28, -5) (Diff)
/intern/ghost/intern/GHOST_XrAction.cpp (+51, -13) (Diff)
/intern/ghost/intern/GHOST_XrAction.h (+7, -1) (Diff)
/intern/ghost/intern/GHOST_XRSession.cpp (+28, -3) (Diff)
/intern/ghost/intern/GHOST_XrSession.h (+6, -1) (Diff)
/source/blender/makesdna/DNA_xr_types.h (+105, -2) (Diff)
/source/blender/makesrna/intern/rna_xr.c (+1568, -34) (Diff)
/source/blender/windowmanager/CMakeLists.txt (+1, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+47, -4) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr.c (+1, -0) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_action.c (+77, -22) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_intern.h (+42, -17) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021