Skip to content

XR Actions: Corrected use of r_hand role string to right_hand when creating custom properties. - #56

Merged
ethanporcaro merged 1 commit into
mainfrom
fix/fix-input-property-tracking
Oct 26, 2026
Merged

ethanporcaro merged 1 commit into
mainfrom
fix/fix-input-property-tracking

Conversation

@ethanporcaro

Copy link
Copy Markdown
Member

In apply_poses, custom properties are created for triggers, buttons, thumbsticks, etc. These properties are only created for controllers, and are skipped for thr HMD and any Vive trackers. This was implemented in #52, commit 39cc0ad.
The controller check should compare role_string to the strings left_hand and right_hand. However, the sting r_hand was mistakenly used instead.
This prevented custom properties from being created for extra inputs on the right hand, so they failed to record and preview. Controller transformation was unaffected, since it was not guarded by the controller-only check.

This PR corrects the string comparison for the right hand role_string, making it consistent with that of the left hand.

@ethanporcaro ethanporcaro added the bug Something isn't working label Oct 26, 2026
@ethanporcaro
ethanporcaro merged commit 81a4914 into main Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant