Skip to content

Commit 04e3449

Browse files
committed
update ifdef as CurveFilterOptions new in 2019.3
- also below 2018.3 is not supported, so don't need an additional 2018.3 check
1 parent 84b0416 commit 04e3449

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ protected override void EndRecording(RecordingSession session)
3838
var absolutePath = FileNameGenerator.SanitizePath(settings.FileNameGenerator.BuildAbsolutePath(session));
3939
var clipName = absolutePath.Replace(FileNameGenerator.SanitizePath(Application.dataPath), "Assets");
4040

41-
#if UNITY_2018_3_OR_NEWER
41+
#if UNITY_2019_3_OR_NEWER
4242
var options = new Animations.CurveFilterOptions();
4343
options.keyframeReduction = false;
4444
aInput.GameObjectRecorder.SaveToClip(clip, settings.FrameRate, options);
4545
#else
46-
aInput.gameObjectRecorder.SaveToClip(clip);
46+
aInput.gameObjectRecorder.SaveToClip(clip, settings.FrameRate);
4747
#endif
4848
var root = ((AnimationInputSettings)aInput.settings).gameObject;
4949
clip.name = "recorded_clip";

0 commit comments

Comments
 (0)