mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-03 23:32:29 -08:00
Updates nodeOffset when body proportions change (#1304)
This commit is contained in:
1 parent
2eb4bab240
commit
ecae40ece8
1 file changed
+2
-8
+2
-8
@@ -156,14 +156,8 @@ class SkeletonConfigManager(
|
||||
}
|
||||
|
||||
protected fun setNodeOffset(nodeOffset: BoneType, x: Float, y: Float, z: Float) {
|
||||
var offset = nodeOffsets[nodeOffset]
|
||||
|
||||
if (offset == null) {
|
||||
offset = Vector3(x, y, z)
|
||||
nodeOffsets[nodeOffset] = offset
|
||||
} else {
|
||||
offset = Vector3(x, y, z)
|
||||
}
|
||||
val offset = Vector3(x, y, z)
|
||||
nodeOffsets[nodeOffset] = offset
|
||||
|
||||
// Updates in skeleton
|
||||
humanPoseManager?.updateNodeOffset(nodeOffset, offset)
|
||||
|
||||
Reference in new issue
Block a user