Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4
2018.4
2019.1
2019.1.11f1
2019.2
2019.3
Issue ID
1172327
Regression
No
AnimationUtility.SetEditorCurve shows some non-zero values when AnimationCurve.Linear(0, 0, 0, 0) is passed to a function
How to reproduce:
1. Open attached Unity project
2. Select arthur_game@stun_back_1 in the Project window
3. Select CATRigHub001:Position.z in the Animation window
4. Switch Animation view to "Curves" in the left-bottom corner of the Animation window
5. Notice, that selected curve has some non-zero values
Note: Reimporting arthur_game@stun_back_1.fbx solves this issue. After reimporting all, the issue appears again.
Expected result: CATRigHub001:Position.z in the Animation window is set to 0 since AnimationUtility.SetEditorCurve(clip, binding, AnimationCurve.Linear(0, 0, 0, 0)) is called.
Actual result: CATRigHub001:Position.z in the Animation window has some non-zero values.
Reproduced with: 2017.4.31f1, 2018.4.5f1, 2019.1.13f1, 2019.2.0f1, 2019.3.0a11.
Note: described function is found in MotionCurveExtractor.cs, line 16: AnimationUtility.SetEditorCurve(clip, binding, AnimationCurve.Linear(0, 0, 0, 0));
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
Use of invalid parameter on https://docs.unity3d.com/ScriptReference/AnimationCurve.Linear.html. Workaround is to use the right one, ie not using 0 duration curves.