st/oxr: Don't return early when not using 'any' subpath

'any' is only set when xrSyncActions was called with XR_NULL_PATH.
When only left or right is set, the already existing following code does the job.
This commit is contained in:
Christoph Haag committed 2020-08-03 18:59:56 +02:00
1 parent 9c16f5ed69
commit 4c8e3eb95f
1 file changed
-7
-7
View File
@@ -963,8 +963,6 @@ oxr_action_attachment_update(struct oxr_logger *log,
//! @todo "/user" sub-action path.
bool select_any = sub_paths.any;
#define UPDATE_SELECT(X) \
bool select_##X = sub_paths.X || sub_paths.any; \
oxr_action_cache_update(log, sess, &act_attached->X, time, select_##X);
@@ -972,11 +970,6 @@ oxr_action_attachment_update(struct oxr_logger *log,
OXR_FOR_EACH_VALID_SUBACTION_PATH(UPDATE_SELECT)
#undef UPDATE_SELECT
if (!select_any) {
U_ZERO(&act_attached->any_state);
return;
}
/*
* Any state.
*/