Always send bone routing settings as a workaround for race

This commit is contained in:
Sapphire committed 2026-12-05 17:54:31 -05:00
1 parent 6232492ffb
commit 8750da0855
1 file changed
+4 -1
@@ -68,11 +68,14 @@ class BoneRoutingBehaviour(
).distinctUntilChanged()
receiver.onRpc<BoneRoutingSettingsRequest> { _, txId ->
// TODO: is .first() right here? It seems to return a very outdated value.
// This causes issues in the driver where, on some launches, trackers will
// simply not show up if they were all connected prior to launching SteamVR
receiver.sendRpc(responses.first(), txId)
}.launchIn(receiver.context.scope)
responses
.drop(1)
// .drop(1) // FIXME: Commented out as a workaround for the mentioned bug
.onEach(receiver::sendRpc)
.launchIn(receiver.context.scope)