Don't perform toe snap with a 0 length foot

This commit is contained in:
Butterscotch! committed 2026-09-12 02:57:57 -04:00
1 parent bc11c874e2
commit 6ebae1bedf
1 file changed
+3 -1
@@ -56,13 +56,15 @@ class ToeSnapFkProcessor(val settings: Settings) : SkeletonFkProcessor {
for (bodyPart in bodyParts) {
val input = mutableInputSkeleton[bodyPart] ?: continue
if (input.isRotationActive) continue
val length = input.offset.len()
if (length <= 0f) continue
val output = fk[bodyPart] ?: continue
mutableInputSkeleton[bodyPart] = input.copy(
rotation = snapToes(
input.rotation,
computeToeSnapRatio(
output.headPosition.y,
input.offset.len(),
length,
floorLevel,
),
),