mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-20 09:01:20 -08:00
Fix build
This commit is contained in:
1 parent
090f836fc9
commit
7eeafb2a25
2 files changed
+2
-3
No files matched your search
@@ -3,8 +3,6 @@ package dev.slimevr.bvh
|
||||
import com.jme3.math.FastMath
|
||||
import dev.slimevr.config.TextFileHandle
|
||||
import dev.slimevr.skeleton.BODY_PART_HIERARCHY_MAP
|
||||
import dev.slimevr.skeleton.BodyPartMap
|
||||
import dev.slimevr.skeleton.BoneState
|
||||
import dev.slimevr.skeleton.ComputedSkeleton
|
||||
import io.github.axisangles.ktmath.EulerOrder
|
||||
import io.github.axisangles.ktmath.Quaternion
|
||||
|
||||
@@ -3,6 +3,7 @@ package dev.slimevr.solarxr
|
||||
import dev.slimevr.config.UserConfig
|
||||
import dev.slimevr.config.UserConfigActions
|
||||
import dev.slimevr.skeleton.ALL_BODY_PARTS
|
||||
import dev.slimevr.skeleton.BodyPartMap
|
||||
import dev.slimevr.skeleton.InputSkeleton
|
||||
import dev.slimevr.skeleton.Skeleton
|
||||
import dev.slimevr.skeleton.computeAllDefaultProportionsByBone
|
||||
@@ -29,7 +30,7 @@ class SkeletonProportionsBehaviour(
|
||||
private val skeleton: Skeleton,
|
||||
) : SolarXRBridgeBehaviour {
|
||||
private fun buildConfigResponse(boneInputs: InputSkeleton): SkeletonProportionsResponse {
|
||||
val boneOffsets = boneInputs.mapValues { it.value.offset }
|
||||
val boneOffsets = BodyPartMap(boneInputs.mapValues { it.value.offset })
|
||||
val boneValues = boneOffsets.toBoneValues()
|
||||
val skeletonParts = boneValues.map { (offset, bone) -> SkeletonPart(offset, bone) }
|
||||
return SkeletonProportionsResponse(skeletonParts = skeletonParts, skeletonHeight = boneValues.height())
|
||||
|
||||
Reference in new issue
Block a user