Skip to content

Commit 6068d7a

Browse files
committed
get finger bone index properly
1 parent 2518ca5 commit 6068d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TrackerDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void SlimeVRDriver::TrackerDevice::PositionMessage(messages::Position &position)
9898
{
9999
// Get data from protobuf
100100
auto fingerData = position.finger_bone_rotations(i);
101-
int fingerBoneName = fingerData.name();
101+
int fingerBoneName = static_cast<int>(fingerData.name());
102102

103103
// Map from our 15 bones to OpenVR's 31 bones
104104
int boneIndex = protobuf_fingers_to_openvr[fingerBoneName];

0 commit comments

Comments
 (0)