Updates nodeOffset when body proportions change (#1304)

This commit is contained in:
jabberrock authored and GitHub committed 2025-02-13 00:26:54 +02:00
1 parent 2eb4bab240
commit ecae40ece8
1 file changed
+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)