mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-30 05:42:46 -08:00
Fix tracker state on SteamVR restart, only hold onto ID in AddTracker
This commit is contained in:
3 files changed
+11
-15
No files matched your search
@@ -17,7 +17,6 @@ import io.github.axisangles.ktmath.Vector3
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.coroutineScope
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.sync.Mutex
|
||||
import kotlinx.coroutines.sync.withLock
|
||||
import kotlinx.coroutines.withContext
|
||||
@@ -118,7 +117,7 @@ suspend fun handleDriverConnection(
|
||||
}
|
||||
msg.position?.let { pos ->
|
||||
bridge.inbound.emit(DriverBridgeInbound.TrackerPosition(
|
||||
trackerId = pos.tracker_id,
|
||||
id = pos.tracker_id,
|
||||
rotation = Quaternion(w = pos.qw, x = pos.qx, y = pos.qy, z = pos.qz),
|
||||
position = if (pos.x != null && pos.y != null && pos.z != null) Vector3(pos.x, pos.y, pos.z) else null,
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user