File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,12 @@ protected override void EndRecording(RecordingSession session)
38
38
var absolutePath = FileNameGenerator . SanitizePath ( settings . FileNameGenerator . BuildAbsolutePath ( session ) ) ;
39
39
var clipName = absolutePath . Replace ( FileNameGenerator . SanitizePath ( Application . dataPath ) , "Assets" ) ;
40
40
41
- #if UNITY_2018_3_OR_NEWER
42
- aInput . GameObjectRecorder . SaveToClip ( clip , settings . FrameRate ) ;
41
+ #if UNITY_2019_3_OR_NEWER
42
+ var options = new Animations . CurveFilterOptions ( ) ;
43
+ options . keyframeReduction = false ;
44
+ aInput . GameObjectRecorder . SaveToClip ( clip , settings . FrameRate , options ) ;
43
45
#else
44
- aInput . gameObjectRecorder . SaveToClip ( clip ) ;
46
+ aInput . GameObjectRecorder . SaveToClip ( clip , settings . FrameRate ) ;
45
47
#endif
46
48
var root = ( ( AnimationInputSettings ) aInput . settings ) . gameObject ;
47
49
clip . name = "recorded_clip" ;
You can’t perform that action at this time.
0 commit comments