Don't patch pinch_ext or pose_ext into non-controller interaction profiles
This commit is contained in:
@@ -1062,7 +1062,9 @@ void application::initialize_actions()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Patch profile to add pinch_ext/pose and poke_ext/pose
|
// Patch profile to add pinch_ext/pose and poke_ext/pose
|
||||||
if (!profile.profile_name.ends_with("ext/hand_interaction_ext") && xr_instance.has_extension(XR_EXT_HAND_INTERACTION_EXTENSION_NAME))
|
if (xr_instance.has_extension(XR_EXT_HAND_INTERACTION_EXTENSION_NAME) //
|
||||||
|
and utils::contains(profile.input_sources, "/user/hand/left/input/grip/pose") //
|
||||||
|
and not utils::contains(profile.input_sources, "/user/hand/left/input/pinch_ext/pose"))
|
||||||
{
|
{
|
||||||
spdlog::info("Adding pinch_ext/pose for interaction profile {}", profile.profile_name);
|
spdlog::info("Adding pinch_ext/pose for interaction profile {}", profile.profile_name);
|
||||||
profile.input_sources.push_back("/user/hand/left/input/pinch_ext/pose");
|
profile.input_sources.push_back("/user/hand/left/input/pinch_ext/pose");
|
||||||
|
|||||||
Reference in New Issue
Block a user