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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.