Blender Git Loki

Git Commits -> Revision a34652d

Revision a34652d by Peter Kim (master)
August 25, 2021, 11:56 (GMT)
Fix: Incorrect declaration of XrActionMaps RNA

This fixes a mistake in the XrActionMaps RNA struct declaration.

Originally, the XrActionMaps struct SDNA was set as wmXrData to get
access to wmXrRuntimeData. However, this doesn't give a valid pointer
and the XrSessionState RNA pointer needs to be passed instead.

Since XrSessionState itself does not have SDNA, it is necessary to
pass the XrSessionState pointer to the XrActionMaps struct functions
(new(), new_from_actionmap(), ...) instead of simply using
RNA_def_struct_sdna().

Commit Details:

Full Hash: a34652d6f872dab1d5b9f8be191504b0f8c35600
Parent Commit: 452cc01
Lines Changed: +41, -27

1 Modified Path:

/source/blender/makesrna/intern/rna_xr.c (+41, -27) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021