[Bf-blender-cvs] [9025f2adc6b] xr-controller-support: XR: Fix action map load/save
Peter Kim
noreply at git.blender.org
Thu Jul 29 06:14:09 CEST 2021
Commit: 9025f2adc6b86b85635fb21fc4e7202dbb5c6905
Author: Peter Kim
Date: Thu Jul 29 13:10:43 2021 +0900
Branches: xr-controller-support
https://developer.blender.org/rB9025f2adc6b86b85635fb21fc4e7202dbb5c6905
XR: Fix action map load/save
Forgot to add action bindings list.
===================================================================
M source/blender/windowmanager/intern/wm.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index dfb088e626b..2aad38fd4dc 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -120,6 +120,10 @@ static void write_wm_xr_data(BlendWriter *writer, wmXrData *xr_data)
if (ami->op[0] && ami->op_properties) {
IDP_BlendWrite(writer, ami->op_properties);
}
+
+ LISTBASE_FOREACH (XrActionMapBinding *, amb, &ami->bindings) {
+ BLO_write_struct(writer, XrActionMapBinding, amb);
+ }
}
}
}
@@ -174,6 +178,8 @@ static void direct_link_wm_xr_data(BlendDataReader *reader, wmXrData *xr_data)
ami->op_properties = NULL;
ami->op_properties_ptr = NULL;
}
+
+ BLO_read_list(reader, &ami->bindings);
}
}
}
More information about the Bf-blender-cvs
mailing list