Fix optional in the feeder and bring back none option in the gui (#194)

This commit is contained in:
lucas lelievre authored and GitHub committed 2022-06-11 20:15:27 +03:00
1 parent c02b95346f
commit 0afe9d2ef8
3 files changed
+15 -9

No files matched your search

@@ -114,7 +114,7 @@ public class WindowsNamedPipeBridge extends ProtobufBridge<VRTracker> implements
);
TrackerRole role = TrackerRole.getById(trackerAdded.getTrackerRole());
if (role != null) {
TrackerPosition.getByTrackerRole(role).ifPresent(tracker::setBodyPosition);
tracker.setBodyPosition(TrackerPosition.getByTrackerRole(role).orElse(null));
}
return tracker;
}