Fix #142333: new FBX importer produces broken rotation fcurves in some cases

Need to ensure that interpolation between neighboring quaternions
takes the shortest path. The Python FBX importer was doing this;
due to oversight was missed in the new importer.

Pull Request: https://projects.blender.org/blender/blender/pulls/142659
This commit is contained in:
Aras Pranckevicius
2025-07-21 10:50:48 +02:00
committed by Aras Pranckevicius
parent a775d58b2e
commit e57b73bdf7
2 changed files with 8 additions and 2 deletions

View File

@@ -119,10 +119,10 @@
- (25.000, 0.000) lh:(17.333, 0.000 AUTO_CLAMPED) rh:(32.667, 0.000 AUTO_CLAMPED)
- fcu 'pose.bones["joint2"].rotation_quaternion[0]' smooth:CONT_ACCEL extra:CONSTANT keyframes:2 grp:'joint2'
- (2.000, 0.728) lh:(-5.667, 0.728 AUTO_CLAMPED) rh:(9.667, 0.728 AUTO_CLAMPED)
- (25.000, 0.675) lh:(17.333, 0.675 AUTO_CLAMPED) rh:(32.667, 0.675 AUTO_CLAMPED)
- (25.000, -0.675) lh:(17.333, -0.675 AUTO_CLAMPED) rh:(32.667, -0.675 AUTO_CLAMPED)
- fcu 'pose.bones["joint2"].rotation_quaternion[1]' smooth:CONT_ACCEL extra:CONSTANT keyframes:2 grp:'joint2'
- (2.000, 0.685) lh:(-5.667, 0.685 AUTO_CLAMPED) rh:(9.667, 0.685 AUTO_CLAMPED)
- (25.000, -0.737) lh:(17.333, -0.737 AUTO_CLAMPED) rh:(32.667, -0.737 AUTO_CLAMPED)
- (25.000, 0.737) lh:(17.333, 0.737 AUTO_CLAMPED) rh:(32.667, 0.737 AUTO_CLAMPED)
==== Armatures: 1
- Armature 'Armature' 6 bones