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

Animation

-

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));

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.