mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-04 07:42:31 -08:00
Try to fix CI
This commit is contained in:
1 parent
7eeafb2a25
commit
9d541a3c09
3 files changed
+25
-17
No files matched your search
+3
-3
@@ -7,7 +7,7 @@ org.gradle.jvmargs=-Xmx4g -Xms1g \
|
||||
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
|
||||
|
||||
org.gradle.parallel=true
|
||||
org.gradle.caching=true
|
||||
#org.gradle.caching=true
|
||||
org.gradle.configureondemand=true
|
||||
|
||||
kotlin.code.style=official
|
||||
@@ -16,9 +16,9 @@ kotlinx.atomicfu.enableJvmIrTransformation=true
|
||||
|
||||
android.useAndroidX=true
|
||||
android.nonTransitiveRClass=true
|
||||
org.gradle.configuration-cache=true
|
||||
#org.gradle.configuration-cache=true
|
||||
# solarxr-protocol:kotlin-codegen's generateTestSchemas isn't cache-compatible yet (submodule); degrade to a warning there instead of failing the whole build
|
||||
org.gradle.configuration-cache.problems=warn
|
||||
#org.gradle.configuration-cache.problems=warn
|
||||
|
||||
kotlinVersion=2.3.10
|
||||
spotlessVersion=8.2.1
|
||||
|
||||
@@ -106,9 +106,9 @@ class HMDCheckBehaviour(private val trackerStates: StateFlow<List<ChecklistTrack
|
||||
enabled = hmdTracker != null,
|
||||
ignorable = true,
|
||||
visibility = TrackingChecklistStepVisibility.WHEN_INVALID,
|
||||
extraData = if (!isAssigned) {
|
||||
extraData = if (hmdTracker != null && !isAssigned) {
|
||||
TrackingChecklistUnassignedHMD(
|
||||
trackerId = hmdTracker?.id?.toUShort() ?: error("trackerId should not be set if hmdTracker"),
|
||||
trackerId = hmdTracker.id.toUShort(),
|
||||
)
|
||||
} else {
|
||||
null
|
||||
|
||||
@@ -5,7 +5,9 @@ import dev.slimevr.osc.OscArg
|
||||
import dev.slimevr.osc.OscBundle
|
||||
import dev.slimevr.osc.OscContent
|
||||
import dev.slimevr.osc.OscMessage
|
||||
import dev.slimevr.skeleton.BodyPartMap
|
||||
import dev.slimevr.skeleton.BoneState
|
||||
import dev.slimevr.skeleton.bodyPartMap
|
||||
import io.github.axisangles.ktmath.Quaternion
|
||||
import io.github.axisangles.ktmath.Vector3
|
||||
import solarxr_protocol.datatypes.BodyPart
|
||||
@@ -35,7 +37,7 @@ class OutputEncoderTest {
|
||||
@Test
|
||||
fun testAlwaysSendsTimeAndOkAndRoot() {
|
||||
val bundle = buildOutgoingBundle(
|
||||
bones = emptyMap(),
|
||||
bones = bodyPartMap(),
|
||||
routedBones = emptySet(),
|
||||
config = defaultConfig,
|
||||
vrm = null,
|
||||
@@ -50,9 +52,11 @@ class OutputEncoderTest {
|
||||
|
||||
@Test
|
||||
fun testSkipsBonesThatAreNotRouted() {
|
||||
val bones = mapOf(
|
||||
BodyPart.HIP to bone(BodyPart.HIP),
|
||||
BodyPart.WAIST to bone(BodyPart.WAIST),
|
||||
val bones = BodyPartMap(
|
||||
mapOf(
|
||||
BodyPart.HIP to bone(BodyPart.HIP),
|
||||
BodyPart.WAIST to bone(BodyPart.WAIST),
|
||||
),
|
||||
)
|
||||
|
||||
val bundle = buildOutgoingBundle(
|
||||
@@ -70,7 +74,7 @@ class OutputEncoderTest {
|
||||
@Test
|
||||
fun testSkipsRoutedBonesMissingFromTheSkeleton() {
|
||||
val bundle = buildOutgoingBundle(
|
||||
bones = mapOf(BodyPart.HIP to bone(BodyPart.HIP)),
|
||||
bones = BodyPartMap(mapOf(BodyPart.HIP to bone(BodyPart.HIP))),
|
||||
routedBones = setOf(BodyPart.HIP, BodyPart.WAIST),
|
||||
config = defaultConfig,
|
||||
vrm = null,
|
||||
@@ -84,10 +88,12 @@ class OutputEncoderTest {
|
||||
@Test
|
||||
fun testMirrorTrackingReadsTheOppositeSideBone() {
|
||||
val leftRotation = Quaternion.rotationAroundXAxis(0.5f)
|
||||
val bones = mapOf(
|
||||
BodyPart.LEFT_UPPER_LEG to bone(BodyPart.LEFT_UPPER_LEG, leftRotation),
|
||||
BodyPart.RIGHT_UPPER_LEG to bone(BodyPart.RIGHT_UPPER_LEG),
|
||||
BodyPart.HIP to bone(BodyPart.HIP),
|
||||
val bones = BodyPartMap(
|
||||
mapOf(
|
||||
BodyPart.LEFT_UPPER_LEG to bone(BodyPart.LEFT_UPPER_LEG, leftRotation),
|
||||
BodyPart.RIGHT_UPPER_LEG to bone(BodyPart.RIGHT_UPPER_LEG),
|
||||
BodyPart.HIP to bone(BodyPart.HIP),
|
||||
),
|
||||
)
|
||||
val routed = setOf(BodyPart.HIP, BodyPart.LEFT_UPPER_LEG, BodyPart.RIGHT_UPPER_LEG)
|
||||
|
||||
@@ -108,9 +114,11 @@ class OutputEncoderTest {
|
||||
|
||||
@Test
|
||||
fun testVrmBindOffsetsReplaceComputedPositions() {
|
||||
val bones = mapOf(
|
||||
BodyPart.HIP to bone(BodyPart.HIP),
|
||||
BodyPart.WAIST to bone(BodyPart.WAIST),
|
||||
val bones = BodyPartMap(
|
||||
mapOf(
|
||||
BodyPart.HIP to bone(BodyPart.HIP),
|
||||
BodyPart.WAIST to bone(BodyPart.WAIST),
|
||||
),
|
||||
)
|
||||
val routed = setOf(BodyPart.HIP, BodyPart.WAIST)
|
||||
val vrm = buildVrmGeometry(VrmReader(VRM_JSON))
|
||||
|
||||
Reference in new issue
Block a user