[Bf-blender-cvs] [872484dfaaa] xr-controller-support: XR: Fix action state querying from Python
Peter Kim
noreply at git.blender.org
Wed Jul 7 13:04:35 CEST 2021
Commit: 872484dfaaadaa2cb4258cdba0d8f7e9ed23c0cf
Author: Peter Kim
Date: Wed Jul 7 19:22:10 2021 +0900
Branches: xr-controller-support
https://developer.blender.org/rB872484dfaaadaa2cb4258cdba0d8f7e9ed23c0cf
XR: Fix action state querying from Python
Credit: Jacob Merrill
===================================================================
M source/blender/makesrna/intern/rna_xr.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_xr.c b/source/blender/makesrna/intern/rna_xr.c
index a1b2a28e2bd..c2419e19bd1 100644
--- a/source/blender/makesrna/intern/rna_xr.c
+++ b/source/blender/makesrna/intern/rna_xr.c
@@ -1095,6 +1095,7 @@ void rna_XrSessionState_action_state_get(bContext *C,
};
if (WM_xr_action_state_get(&wm->xr, action_set_name, action_name, user_path, &state)) {
*r_state = state.state_float;
+ return;
}
# else
UNUSED_VARS(C, action_set_name, action_name, user_path);
More information about the Bf-blender-cvs
mailing list