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
path: root/source
diff options
context:
space:
mode:
authorPeter Kim <pk15950@gmail.com>2021-08-05 18:08:56 +0300
committerPeter Kim <pk15950@gmail.com>2021-08-05 18:08:56 +0300
commit03d7561708ce3b4b3810fe53e837fa14259c42ef (patch)
treecc2dc528976a5d29617684cca0ac65618113db4c /source
parentb4f950cbbe5d1306f7bdcff6a288381759e04aeb (diff)
Fix build error when WITH_XR_OPENXR not defined
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_xr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_xr.c b/source/blender/makesrna/intern/rna_xr.c
index 358db14c298..57133ebe1c1 100644
--- a/source/blender/makesrna/intern/rna_xr.c
+++ b/source/blender/makesrna/intern/rna_xr.c
@@ -901,9 +901,13 @@ static void rna_XrSessionState_viewer_pose_rotation_get(PointerRNA *ptr, float *
static void rna_XrSessionState_actionmaps_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
{
+# ifdef WITH_XR_OPENXR
wmXrData *xr = rna_XrSession_wm_xr_data_get(ptr);
ListBase *lb = WM_xr_actionmaps_get(xr->runtime);
rna_iterator_listbase_begin(iter, lb, NULL);
+# else
+ UNUSED_VARS(iter, ptr);
+# endif
}
static int rna_XrSessionState_active_actionmap_get(PointerRNA *ptr)