Skip to content

Commit 84b0416

Browse files
committed
don't reduce keyframes after recording and before exporting
- baking, reducing keyframes and baking again can create unnecessary errors/discrepancies in the exported curve.
1 parent 3aa7450 commit 84b0416

File tree

1 file changed

+3
-1
lines changed
  • com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder

1 file changed

+3
-1
lines changed

com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder/FbxRecorder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ protected override void EndRecording(RecordingSession session)
3939
var clipName = absolutePath.Replace(FileNameGenerator.SanitizePath(Application.dataPath), "Assets");
4040

4141
#if UNITY_2018_3_OR_NEWER
42-
aInput.GameObjectRecorder.SaveToClip(clip, settings.FrameRate);
42+
var options = new Animations.CurveFilterOptions();
43+
options.keyframeReduction = false;
44+
aInput.GameObjectRecorder.SaveToClip(clip, settings.FrameRate, options);
4345
#else
4446
aInput.gameObjectRecorder.SaveToClip(clip);
4547
#endif

0 commit comments

Comments
 (0)