Skip to content

Commit 9579e3e

Browse files
committed
try to remove erroneous keyframe for steering
1 parent f0a85d4 commit 9579e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bake_operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _evaluate_rotation_per_frame(self, action, source_bone):
188188
world_space_tangent_vector = next_pos - current_pos
189189
local_space_tangent_vector = mathutils.Quaternion(rotEvaluator.evaluate(f)).inverted() * world_space_tangent_vector
190190
# FIX : ignores small location variations (probably rounding errors)
191-
if local_space_tangent_vector.length < source_bone.length / 1000:
191+
if local_space_tangent_vector.length < source_bone.length / 50:
192192
continue
193193
current_rotation = local_space_tangent_vector.xy.angle_signed(init_vector.xy, prev_rotation)
194194
if abs(prev_rotation - current_rotation) > self.keyframe_tolerance / 100 or f == self.frame_start:

0 commit comments

Comments
 (0)